PHP » GoLang |
login |
register |
about
|
ereg_replace(PHP 4, PHP 5) ereg_replace — Replace regular expression Warning
This function was DEPRECATED in PHP 5.3.0, and REMOVED in PHP 7.0.0. Alternatives to this function include: Description
string ereg_replace
( string
$pattern
, string $replacement
, string $string
)
This function scans Parameters
Return Values
The modified string is returned. If no matches are found in
ExamplesFor example, the following code snippet prints "This was a test" three times:
Example #1 ereg_replace() example
<?php
One thing to take note of is that if you use an integer value as
the
Example #2 ereg_replace() example
<?php
Example #3 Replace URLs with links
<?php See Also
|
more
Recently updated
more
Most requested
more
Last requests
|