mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fixed example per errata.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@33203 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
f9e108ac84
commit
8f3601c0b6
1 changed files with 2 additions and 2 deletions
|
@ -363,9 +363,9 @@ part 3: </a>
|
|||
<example>
|
||||
<title>Replacing several values</title>
|
||||
<programlisting>
|
||||
$patterns = array ("/(19|20\d{2})-(\d{1,2})-(\d{1,2})/",
|
||||
$patterns = array ("/(19|20)(\d{2})-(\d{1,2})-(\d{1,2})/",
|
||||
"/^\s*{(\w+)}\s*=/");
|
||||
$replace = array ("\\3/\\4/\\1", "$\\1 =");
|
||||
$replace = array ("\\3/\\4/\\1\\2", "$\\1 =");
|
||||
print preg_replace ($patterns, $replace, "{startDate} = 1999-5-27");
|
||||
</programlisting>
|
||||
</example>
|
||||
|
|
Loading…
Reference in a new issue