title: ErrorException : Array to string conversion in PHP
body: <p>I want to convert an array to a string in Laravel. I have already searched and implement the <code>implode()</code> function to convert this but got this error</p>
  
  <pre><code>ErrorException (E_NOTICE) Array to string conversion
  </code></pre>
  
  <p><strong>Here is my code in controller</strong></p>
  
  <pre><code>$sliderImageDataArray[] =array(
                  "title"=&gt; $value-&gt;title,
                  "text"=&gt; "&lt;p&gt;&lt;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\"&gt;".$value-&gt;text."&lt;\/span&gt;&lt;\/p&gt;\n&lt;p&gt;&lt;a class=\"btn  btn-secondary\" href=\"http://localhost/sencare/book-appoinment/\" target=\"_self\"&gt;  Make An Appointment &lt;\/a&gt;\u00a0&lt;a class=\"btn  btn-light\" href=\"http://localhost/sencare/our-doctors/\" target=\"_self\"&gt; Our Doctors&lt;\/a&gt;&lt;\/p&gt;\n",
                  "is_video"=&gt; false,
              );
  
  $sliderImageDataArray = implode(" ",$sliderImageDataArray);
  
  return $sliderImageDataArray;
  </code></pre>
  
  <p>Anybody help please</p>