mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 17:08:54 +00:00
Correcting 'typo' noticed by Daniel Ems <dems@sdimaps.com>
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@41156 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
4f7162e638
commit
e0de3ec305
1 changed files with 2 additions and 2 deletions
|
@ -126,7 +126,7 @@ $string = ereg_replace ("\n", "", $string);
|
|||
The following code snippet takes a date in ISO format
|
||||
(YYYY-MM-DD) and prints it in DD.MM.YYYY format:
|
||||
<example>
|
||||
<title><function>Ereg</function> Example</title>
|
||||
<title><function>ereg</function> Example</title>
|
||||
<programlisting role="php">
|
||||
if (ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})", $date, $regs)) {
|
||||
echo "$regs[3].$regs[2].$regs[1]";
|
||||
|
@ -188,7 +188,7 @@ if (ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})", $date, $regs)) {
|
|||
For example, the following code snippet prints "This was a test"
|
||||
three times:
|
||||
<example>
|
||||
<title><function>Ereg_replace</function> Example</title>
|
||||
<title><function>ereg_replace</function> Example</title>
|
||||
<programlisting>
|
||||
$string = "This is a test";
|
||||
echo ereg_replace (" is", " was", $string);
|
||||
|
|
Loading…
Reference in a new issue