int ereg ( string $pattern , string $string [, array &$regs ] )
Searches a string for matches to the regular expression given in pattern in a case-sensitive way. Warning: This function has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged.
Returns the length of the matched string if a match for pattern was found in string, or FALSE if no matches were found or an error occurred. If the optional parameter regs was not passed or the length of the matched string is 0, this function returns 1.