title: Laravel 5.4 Array to string conversion exception
body: <p>I am trying to break down a string into an array and then print the values on the screen. Here is the string that i am trying to break:</p>
  
  <p>"Cog|Condor"</p>
  
  <p>"|" using this to split it. Here is how I am doing it:</p>
  
  <pre><code>&lt;?= $arrays = explode('|', $b-&gt;brand); foreach($arrays as $array){echo $array;}  ?&gt; 
  </code></pre>
  
  <p>But i keep getting this exception:</p>
  
  <pre><code>    2/2) ErrorException
  Array to string conversion (View: D:\Code\PHP\Code\CrownBillingSystem\resources\views\pages\print.blade.php)
  in 6e7ee4930110d4a26a3e31e0ddfe8b87849a1319.php (line 93)
  at CompilerEngine-&gt;handleViewException(object(ErrorException), 1)
  in PhpEngine.php (line 44)
  at PhpEngine-
  </code></pre>
  
  <p>I cannot figure out what is wrong here.</p>