ereg(PHP 4, PHP 5) ereg — Regular expression match Описание
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. Список параметров
Возвращаемые значения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. Примеры
Пример #1 ereg() example The following code snippet takes a date in ISO format (YYYY-MM-DD) and prints it in DD.MM.YYYY format:
<?phpПримечания
|
|
|
| © 2009 Тест скорости интернета | Boont.Ru |