Can't Access Index of Associative Array php : <p>I'm sending my posted data to the server as a block of JSON data due to its size. Once it arrives, I decode it using <code>json_decode</code> and then go about my business. The problem I've run into is I can't access values at indexes. When I <code>print_r</code> the array it shows everything, but trying to echo the value at an index shows nothing. Why doesn't the echo work? Here's what I'm trying:</p>

<pre><code>$content = json_decode($_POST['result']);

print_r($content); //works

echo $content["rowCount"]; //doesn't work
</code></pre>

<p>Here's what <code>print_r($content);</code> prints out: </p>

<blockquote>
  <p>stdClass Object ( [prodName] => [company] => [runTime] => [adLine]
  => [vintage] => [agency] => [vimeo] => [notes] => [displayOrder] => [infoId] => [prodName1] => test [company1] => test [runTime1] => 0
  [adLine1] => [vintage1] => 0 [agency1] => [vimeo1] =>
  <a href="https://vimeo.com/" rel="nofollow noreferrer">https://vimeo.com/</a> [notes1] => [displayOrder1] =>
  0 [infoId1] => 339 [rowCount] => 1 )</p>
</blockquote>
