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:
Gabor Hojtsy 2001-02-12 20:09:57 +00:00
parent 4f7162e638
commit e0de3ec305

View file

@ -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);