Code: Select all
The array--
[color=#FF0000]$num=array(1, 4, 7);[/color]
function add($i, $array){
$array[]=$i;
echo "<pre>";
print_r($array);
echo "</pre>";
}
[color=#FF0000]calling the function[/color]
add(20, $num);I'm sure i'm missing something here, but i'm not sure what?
Any Help would be Great.
Thanks
Oliver