|
Posted by Steve on 11/05/07 16:14
> $list = array();
> array_push($list,array(1,1,'x','x');
> array_push($list,array(1,2,'x','y');
> array_push($list,array(2,1,'y','x');
> array_push($list,array(2,2,'y','y');
>
> $result = array();
> $result = findvalue(1,2); //should return 'x','y'
>
> function findvalue($a,$b){
> //return the array of values...
> }
print_r($list[1][2]);
not sure why you need a function here.
[Back to original message]
|