note 100397 deleted from function.floatval by sobak

From: Date: Sat, 19 Nov 2016 05:39:32 +0000
Subject: note 100397 deleted from function.floatval by sobak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-207173@lists.php.net to get a copy of this message
Note Submitter: balai01 at yahoo dot com ---- //changes comma to dot if any //removes any currency symbol and gets the floatVar $price_fl_point=(preg_replace("/,/",".",$price)); $price_c=floatval(preg_replace("/^[^0-9\.]/","",$price_fl_point));

« previous php.notes (#207173) next »