note 28191 rejected from function.ereg-replace by victor

From: Date: Sun, 05 Jan 2003 17:36:04 +0000
Subject: note 28191 rejected from function.ereg-replace by victor
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-41690@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,

« previous php.notes (#41690) next »