Hie everyone am trying to pass the following array:
$cars=array("Volvo","BMW","Toyota");
To the following function
function foo(){
$numargs = func_num_args();
$args = func_get_args();
print_r($args);
}
What I want is to make each element in array to be separated element in $args
at the same time I don't to write the function and parameters like that way
foo($cars[0],$cars[1]);