note 107439 added to function.str-replace

From: Date: Thu, 09 Feb 2012 10:02:16 +0000
Subject: note 107439 added to function.str-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-185934@lists.php.net to get a copy of this message
I use php programming language.I want to upload excel file into my database.Excel file contain Enter character in each cell.It is not accepted in SQL.In Excel , "Kyaung Su Village,//Enter Nyaung Don Tsp,//Enter Ayeyawaady Division"//Enter In my code, $order=array("/r/n","/n","/r"); $address=str_replace($order," ",$address); When I echo $address,it only show "Kyaung Su Village"(the first part). How can I replace with?I would like to know the answer. ---- Server IP: 69.147.83.197 Probable Submitter: 203.81.165.155 ---- Manual Page -- http://www.php.net/manual/en/function.str-replace.php Edit -- https://master.php.net/note/edit/107439 Del: integrated -- https://master.php.net/note/delete/107439/integrated Del: useless -- https://master.php.net/note/delete/107439/useless Del: bad code -- https://master.php.net/note/delete/107439/bad+code Del: spam -- https://master.php.net/note/delete/107439/spam Del: non-english -- https://master.php.net/note/delete/107439/non-english Del: in docs -- https://master.php.net/note/delete/107439/in+docs Del: other reasons-- https://master.php.net/note/delete/107439 Reject -- https://master.php.net/note/reject/107439 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#185934) next »