PHP Manualereg(PHP 4, PHP 5) ereg — Regular expression match Description
int ereg
( string
$pattern
, string $string
[, array &$regs
] )
Searches a Warning
This function has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged. Parameters
Return Values
Returns the length of the matched string if a match for
If the optional parameter Changelog
Examples
Example #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 Notes
See Also
![]() |
PHP-Index
New Tutorial entries
|