note 28465 deleted from function.preg-replace by sniper

From: Date: Sun, 07 Sep 2003 22:03:50 +0000
Subject: note 28465 deleted from function.preg-replace by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-55691@lists.php.net to get a copy of this message
Note Submitter: eurleif.no.spam.please@ecritters.biz ---- Simple example to convert beginning HTML tags to ending HTML tags: function begtoend($htmltag){ return preg_replace('/<([A-Za-z]+)>/','</$1>',$htmltag); } print begtoend('<b><i>'); //Outputs '</b></i>'

« previous php.notes (#55691) next »