note 28191 added to function.ereg-replace

From: Date: Sun, 05 Jan 2003 12:59:34 +0000
Subject: note 28191 added to function.ereg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-41687@lists.php.net to get a copy of this message
This is a way how you can remove something of a string with ereg_replace, its easy but fun to know if you didn't knew it ;) $percent= "45%"; $result= ereg_replace("%", "", $percent); print "$percent"; -- print will be: 45 Greetz, -- http://www.php.net/manual/en/function.ereg-replace.php http://master.php.net/manage/user-notes.php?action=edit+28191 http://master.php.net/manage/user-notes.php?action=delete+28191 http://master.php.net/manage/user-notes.php?action=reject+28191

« previous php.notes (#41687) next »