Here is my class :
class Location
{
var $plz;
var $dist;
var $name;
function Location($a, $b, $c)
{
$this->plz=$a;
$this->dist=$b;
$this->name=$c;
}
}
then my functions :
function distSort($a1,$a2)
{
Return ( (Location)$a1->dist > (Location)$a2->dist ); // Parse error HERE
}
and how I use all that in my "main" program :
usort($found,"distSort");
Where is the mistake : Parse error in my plzSort function