So we got this function in PHP
strcmp(string $1,string $2) // returns -1,0, or 1;
We Do not however, have an intcmp(); So i created one:>
You could use
function intcmp($a,$b) { return ($a-$b) ? ($a-$b)/abs($a-$b) : 0; }
Although I don't see the point in using this function at all