I want to convert an array to a string in Laravel. I have already searched and implement the implode() function to convert this but got this error
ErrorException (E_NOTICE) Array to string conversion
Here is my code in controller
$sliderImageDataArray[] =array(
"title"=> $value->title,
"text"=> "<p><span id=\"hs_cos_wrapper_module_1498510869515998\" class=\"hs_cos_wrapper hs_cos_wrapper_widget_container hs_cos_wrapper_type_widget_container\" data-hs-cos-general-type=\"widget_container\" data-hs-cos-type=\"widget_container\">".$value->text."<\/span><\/p>\n<p><a class=\"btn btn-secondary\" href=\"http://localhost/sencare/book-appoinment/\" target=\"_self\"> Make An Appointment <\/a>\u00a0<a class=\"btn btn-light\" href=\"http://localhost/sencare/our-doctors/\" target=\"_self\"> Our Doctors<\/a><\/p>\n",
"is_video"=> false,
);
$sliderImageDataArray = implode(" ",$sliderImageDataArray);
return $sliderImageDataArray;
Anybody help please