title: Array to String to Array conversion
body: <p>I have an array that I'm storing as a string in a database to make it easier to retrieve (it's refreshed with new data every 15-30minutes via cron).</p>
  
  <pre><code>'player_list' -&gt; 'Bob,Dave,Jane,Gordy'
  'plugin_list' -&gt; 'Plugin-A 1.4, Plugin-B 2.1, Plugin-C 0.2'
  </code></pre>
  
  <p>I originally store the array into the db as a string using:</p>
  
  <pre><code> $players = $liveInfo['players'] ? implode(",", $liveInfo['players']) : '';
  
   $plugins = $liveInfo['plugins'] ? implode(",", $liveInfo['plugins']) : '';
  </code></pre>
  
  <p>I am currently using the following to retreive and then convert string back into array in preparation for a foreach:</p>
  
  <pre><code> $players = $server_live-&gt;player_list;
   $playersArray = explode(",", $players);
   $plugins = $server_live-&gt;plugin_list;
   $pluginsArray = explode(",", $plugins);
  </code></pre>
  
  <p>For some reason, I am getting the following error: <code>Array to string conversion</code>  I don't understand this error since I'm going from String to Array and I looked over the <code>php.net/manual</code> and it looks fine?...</p>