
Brian Read - 2009-05-18 14:44:54
I have:
Function whatever(){
function roomcmp($a, $b)
{
if ($a["MealType"]["Text"] == $a["MealType"]["Text"]) {
return 0;
}
return ($a["MealType"]["Text"] < $b["MealType"]["Text"]) ? -1 : 1;
}
..............
usort($roomarray,roomcmp);
..............
}
and I get
"Use of undefined constant roomcmp - assumed 'roomcmp'".
How am I meant to declare roomcmp?
Cheers
Brain