0) { for( $i=0; $i < $l; $i++ ) { $c = ord($s[$i]); // ascii code of the string /** * We chech here the ASCII code of each character in the string * If it is a number (between 48 and 58), we give it to the output buffer alone * If it is a lowercase (between 98 and 122) letter we give it to the buffer as well * */ if ( (($c >= 48) && ($c <= 57)) || (($c >= 97) && ($c <= 122))) { $o.=$s[$i]; } } if (strlen($o) > 0) { return $o; } } return false; } ?>