Re: Removing a comma from a form field

From: Date: Thu, 13 Feb 2003 18:22:59 +0000
Subject: Re: Removing a comma from a form field
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-135482@lists.php.net to get a copy of this message
$thestr = str_replace(",","",$thestring); ----- Original Message ----- From: "Ben C." <benc@cox.net> To: <php-general@lists.php.net> Sent: Thursday, February 13, 2003 12:13 PM Subject: [PHP] Removing a comma from a form field I'm trying to update a field which contains a $USD figure. But when I update it as 200,000 it become 200. I need to take out the comma. Is using ereg_replace function the best way of doing so? What do you think. Thanks, Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#135482) next »