PHP key value pairs vs. arrays
<p>I'm trying to pass key values pairs within PHP:</p>

<pre><code>// "initialize"
private $variables;
// append
$this-&gt;variables[] = array ( $key = $value)
// parse
foreach ( $variables as $key =&gt; $value ) {
   //..
}
</code></pre>

<p>But it seems that new arrays are added instead of appending the key/value, nor does the iteration work as expect. Please let me know what the proper way is.</p>

<p><b>Solution</b></p>

<pre><code>$this-&gt;variables[$key] = $value;
</code></pre>

<p>did the trick - the iteration worked as described above.</p>
