If you want to pass a multi-dimensional array as a parameter, simply pass the child array with the name of the parent (container array).
So if an array like
Array (
[pattern] =>
[status] => Array (
[0] => 0
[1] => 4
)
)
if you want both the elements of status to be passed into the function,pass the name of the array parent. (in this case, param)
function foo($x)
{
echo "<pre>"; // just to make reading easy ;)
print_r($x);
}
The function foo() displays the contents passed into the function which you can use to see what's being passed.
so things like foo($param['status'])
gives this :
Array( [0] => 0 [1]=> 4 )
and something like foo($param['status'][1])
gives this :
4
$param["status"]…?print_r($param['status']);function value($action, $param){ // want to use the value here print_r($param['status']); }