Saturday, March 18, 2017

preg_match() expects parameter 2 to be string, array given in laravel

I am trying get merge array, but I got this error:

$result = array_merge($value[0],$value[1],$value[2],$value[3],$value[4]);
        //Array 2...

$data33[] = array(  "login_id" => $login_id ,
                    "pro_name" => $pro_name ,
                    "pro_category" => $pro_category , 
                    "pro_type" => $pro_type , 
                    "description" =>$description ,                                          
                    "tax"  => $tax , 
                    "tax_value " => $tax_value, 
                    "apply_tax"=> $apply_tax ,
                    "$tax_price"=>$tax_price        
                );

$abc = array_merge($data33,$result); 

I am trying to export excelsheet in laravel.



via V Jay

Advertisement