note 18513 added to function.preg-replace
| From: | php-general at lists dot php dot net | Date: | Fri, 25 Jan 2002 23:40:17 +0000 |
| Subject: | note 18513 added to function.preg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-25825@lists.php.net to get a copy of this message | ||
Just a example with an array in an output...
<?php
$maand = array("","Januar","Februar","etc..");
echo preg_replace("/(\d{1,2})-(\d{1,2})-(19|20)(\d{2})/e","'\\1 '.
\$maand['\\2'] .' \\3\\4'","25-1-2002");
?>
--
http://www.php.net/manual/en/function.preg-replace.php
http://master.php.net/manage/user-notes.php?action=edit+18513
http://master.php.net/manage/user-notes.php?action=delete+18513
http://master.php.net/manage/user-notes.php?action=reject+18513