Should I use single quotes or not when accessing an array within an array?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1381300/do-php-array-keys-need-to-we-wrapped-in-quotes">Do PHP array keys need to we wrapped in quotes?</a><br>
  <a href="http://stackoverflow.com/questions/2405482/is-it-okay-to-use-arraykey-in-php">Is it okay to use array[key] in PHP?</a>  </p>
</blockquote>



<p>This is the code I am running and I am wondering whether I should quote the word message with single quotes like the second line of code in this post. Which is best practice?</p>

<pre><code>$post = array('message' =&gt; $result[message]);
</code></pre>

<p>Or this?</p>

<pre><code>$post = array('message' =&gt; $result['message']);
</code></pre>
