PHP Accessor functions and arrays
<p>Using a __set accessor function in PHP I can set the value of a scalar, but not an element of an array.  Ie:</p>

<pre><code>$p-&gt;scalavar = "Hello";  // This works fine
$p-&gt;myarray['title'] = "Hello";  //This does not work
</code></pre>

<p>My accessor is as follows:</p>

<pre><code>function __set($mbr_name, $mbr_value) {
    $this-&gt;$mbr_name = $mbr_value;
}
</code></pre>

<p>Thanks!</p>
