I'm having a problem with getting an array (with all its data) over to a receiving function. I am passing the array over as a constructor argument ($myarray):
$s = new MyQuery($param1, $myarray);
The receiving side is a MyQuery object receiving the arguments, using:
$a = func_get_args();
But it does not give me the values in the array: If I do:
$size=func_num_args();
$a=func_get_args();
for ($i=0;$i<$size;$i++) {
if (is_array($a[$i])){
$arr = $a[$i]; //trying to get the very array....
echo ($arr[0]);
}
}
.. the echo here does just say "Array". Does it have to do with the func_get_args() function? Very thankful for any help.