4
Save everyone, I have the following function
exec($dia, $mes, $ano);
would like to make a foreach
to run it through a base in array. I passed the following way
$a=array("1,2,2016", "2,2,2016","3,2,2016");
foreach($a as $as){ exec($as) };
But it presents the error of the second argument on:
Missing argument
how can I pass these parameters?
The problem is called from the function, need to obligatorily 3 arguments, if they are optional, put them in the signature as null
– rray
exact wanted each row of the array to represent the arguments, that 1 would refer to $dia, 2 $mes and 2016 $year on each line of the array.
– Christopher Tavares