note 117318 added to function.str-replace

From: Date: Wed, 20 May 2015 15:54:06 +0000
Subject: note 117318 added to function.str-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-202623@lists.php.net to get a copy of this message
Hi all.. Please i'm trying so hard to remove the character , and change for .(dot) , with no sucess... can anyone take me a light ? the price in my site appear 12,995 and i want show 12.995 , i'm not sure if i'm editing the correct place but the code is : if( isset( $_POST['_price'] ) ) { $_POST['_price'] = str_replace(array('.', ' '), array('', ''), strip_tags($_POST['_price']) ); } Thank you ! ---- Server IP: 72.52.91.14 Probable Submitter: 187.70.185.15 ---- Manual Page -- http://php.net/manual/en/function.str-replace.php Edit -- https://master.php.net/note/edit/117318 Del: integrated -- https://master.php.net/note/delete/117318/integrated Del: useless -- https://master.php.net/note/delete/117318/useless Del: bad code -- https://master.php.net/note/delete/117318/bad+code Del: spam -- https://master.php.net/note/delete/117318/spam Del: non-english -- https://master.php.net/note/delete/117318/non-english Del: in docs -- https://master.php.net/note/delete/117318/in+docs Del: other reasons-- https://master.php.net/note/delete/117318 Reject -- https://master.php.net/note/reject/117318 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#202623) next »