title: Creating JSON from a comma delimited string with PHP
body: <p>I am trying to create JSON  from a comma delimited string, the string look something like this:</p>
  
  <pre><code>One,Two,Three,Four,Five,Six,Seven
  </code></pre>
  
  <p>I need it to look something like this: </p>
  
  <pre><code>[{"test":"One"},{"test":"Two"},{"test":"Three"},{"test":"Four"},{"test":"Five"},{"test":"Six"},{"test":"Seven"}]
  </code></pre>
  
  <p>Here is the code I have thus far:</p>
  
  <pre><code>$string = mysql_fetch_array($test, true);
  $woot = explode(',', $string['test']);
  
  $json = json_encode($woot);
  echo($json);
  </code></pre>
  
  <p>Thanx in advance!</p>