title: How to echo out the values of this array?
body: <p>How to echo out the values individually of this array?</p>
  <pre><code>Array ( [0] =&gt; 20120514 [1] =&gt; My Event 3 )
  </code></pre>
  <p>so</p>
  <pre><code> echo $value[0]; etc
  </code></pre>
  <p>I have this so far:</p>
  <pre><code>foreach (json_decode($json_data_string, true) as $item) {
  
  $eventDate = trim($item['date']);
  
      // positive limit
      
     $myarray = (explode(',', $eventDate, 2));
  
  foreach ($myarray as $value) {
     echo $value;
  }
  </code></pre>
  <p>This echo's out the whole string no as an array. and if i do this?</p>
  <pre><code>  echo $value[0};
  </code></pre>
  <p>Then I only get 2 characters of it??</p>
  <p>The print_r :</p>
  <pre><code>Array ( [0] =&gt; 20120430 [1] =&gt; My Event 1 )
  </code></pre>