Hi All, I must be overlooking something here ... $var1 = "01011090"; $var2 = "010190"; // 2 strings if ($var1 < $var2) ECHO "var1 < var2"; else ECHO "var1 >= var2"; echo "<br />"; $r = strcmp ( $var1 , $var2 ); if ($r < 0) ECHO "var1 < var2", "<br />"; 2nd line says: $var1 >= $var2 4th line says: $var1 < $var2 TIA, Cor