func_get_args and foreach
<p>what's different between this two,
why when I use func_get_args
foreach only echo last number "7"</p>

<pre><code>function add(){
    $total=func_get_args();
    foreach($total as $result);
    echo $result;
    }

add(1, 5 , 6, 7);

//////////////////////////////////////////////////////////////////

$array=array(1, 5, 6, 7);
foreach($array as $result){
    echo $result;
    }
</code></pre>
