Setting a value inside an array
<p>If I want to add a value in an array, I can use:</p>

<pre><code>$array[] = 'value'; // or...
array_push($array, 'value');
</code></pre>

<p>If I want to set the value associated with a key, I can use:</p>

<pre><code>$array['key'] = 'value';
</code></pre>

<p>Is there any function I could use instead of the <code>[]</code> syntax?</p>
