title: Notice: Array to string conversion convert array to string
body: <p>I want to convert all session's keys and values to the string. When I run this code:</p>
  
  <pre><code>&lt;?php
  session_start();
  error_reporting(E_ALL);
  ini_set('display_errors', 1);
  $array['language'] = 'Asdfgh';
  $array['currency'] = 'Asdfgh';
  $array['cart'][] = 'Asdfgh';
  $array['cart'][] = 'Asdfgh';
  $array['facebookpagelikeshowed'] = 'Asdfgh';
  $array['vid_yMHe4j2Ouko']['uid'] = '170785079';
  $array['vid_yMHe4j2Ouko']['vid'] = '170785079';
  
      $text = '';
      foreach ($array as $key =&gt; $value)
      { 
          $text .= ''.$key.'='.$value.';';
      }
      echo $text;
  ?&gt;
  </code></pre>
  
  <p>I got this error: </p>
  
  <pre><code>Notice: Array to string conversion in /var/www/index.php on line 16
  </code></pre>
  
  <p>Why? How can I resolve it?</p>