note 76289 deleted from function.str-replace by felipe

From: Date: Sun, 09 Dec 2007 15:41:59 +0000
Subject: note 76289 deleted from function.str-replace by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-133026@lists.php.net to get a copy of this message
Note Submitter: tom at appee dot com ---- Note that the $replace parameter is only evaluated once, so if you have something like: <?php $item = 1; $list = str_replace('<li>', $item++.'. ', $list); ?> then every "li" tag in the input will be replaced with "1. ".

« previous php.notes (#133026) next »