how to do a ireplace

From: Date: Thu, 08 Feb 2001 16:08:27 +0000
Subject: how to do a ireplace
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-92@lists.php.net to get a copy of this message
(sorry for the wrong subject in the order mail) A variable modifier "ireplace" would be nice for case insensitive replace. Unfortunately there is no stri_replace in PHP 4. However it can be done by using reg_replace("/$search/i", $replace, $string); in your custom made variable modifier (ireplace) in Smarty. Joris

« previous php.smarty.general (#92) next »