|
Posted by sueyic@gmail.com on 04/14/06 00:09
Hello,
What is the syntax for telling php that a variable is an array, or an
array of arrays?
Let's say I have $arrTerms
/*
@param array of arrays $arrTerms
*/
function test($arrTerms) {
$anotherArray = array('1', '2');
$intersect = array_intersect($anotherArray, $arrTerms[0]);
}
This doesn't work and php tells me I'm trying to access $arrTerms[0] as
a array though it is not.
But actually, since $arrTerms is supposed to be an array of arrays --
$arrTerms[0] is an array ... how can I tell php this?
Thanks,
sue yi
[Back to original message]
|