Getting Deprecated: Call-time pass-by-reference has been deprecated when calling exec() Function
<p>When running the following code:</p>

<pre><code>&lt;?php
    $output = array();
    exec("ping google.com", &amp;$output);
    foreach ($output as $key =&gt; $value) {
        echo $value . "&lt;br/&gt;";
    }
?&gt;
</code></pre>

<p><strong>Getting Deprecated</strong>: as follows </p>

<pre><code> Call-time pass-by-reference has been deprecated in C:\xampp\htdocs\my_test\ajax_loop.php on line 3.
</code></pre>

<p>Please help.</p>
