eregRegular 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
Tip
ereg is deprecated as of PHP 5.3.0. preg_match is the suggested alternative to this function. See Also
|