Modify a value of a variable passed by reference
<p>I want to be able to modify a value of a variable that is passed by reference to a function.</p>

<pre><code>&lt;?php
    function invoke($what) {
        $args = func_get_args();
        return call_user_func_array($what, $args);
    }

    function page(&amp;$page) {
        return $page;
    }

    $page = array();
    $page['context'] = 'view';
    invoke('page', $page);
    ?&gt;
</code></pre>

<p>When I call invoke(), I'm getting the warning:
Parameter 1 to page() expected to be a reference, value given in invoke()</p>

<p>Please what am I doing wrong?</p>

<p>Thanks</p>
