PHP func_get_args() - Why is this function wierd?

Smith

New member
<?php

function howmany()
{

$c = func_get_args();

foreach($c as $v);
{
var_dump ($c);
echo $v * 10;
}


}

howmany(1,2,10,6,4);
?>

Why does this only return 40? And not the other arguments multiplied by 10?
 
Back
Top