Addendum: finding the largest integer
<? function maxint(){ $to_test = 2; while(1){ $last = $to_test; $to_test = 2 * $to_test; if (($to_test < $last) || (!is_int($to_test))){ return($last + ($last - 1)); } } } $maxint = maxint(); print("Maxint is $maxint<BR>"); ?>