note 82688 added to function.explode

From: Date: Tue, 22 Apr 2008 07:02:06 +0000
Subject: note 82688 added to function.explode
Groups: php.notes 
Request: Send a blank email to php-notes+get-138647@lists.php.net to get a copy of this message
Beware when you are using explode() to split lines from TSV file. I have had one file with tab separated values. Since the whole line was one string, everything appeared OK. After exploding long numbers like 9876543210987 were converted to 9.87654E+12, then to string, and this was the value inserted to the database (instead of 9876543210987 as a string). Concatenating with an empty string did not help since the problem appeared inside the explode() function. Regards, Pietshaq ---- Server IP: 82.160.94.10 Probable Submitter: 81.210.20.253 ---- Manual Page -- http://www.php.net/manual/en/function.explode.php Edit -- https://master.php.net/note/edit/82688 Del: integrated -- https://master.php.net/note/delete/82688/integrated Del: useless -- https://master.php.net/note/delete/82688/useless Del: bad code -- https://master.php.net/note/delete/82688/bad+code Del: spam -- https://master.php.net/note/delete/82688/spam Del: non-english -- https://master.php.net/note/delete/82688/non-english Del: in docs -- https://master.php.net/note/delete/82688/in+docs Del: other reasons-- https://master.php.net/note/delete/82688 Reject -- https://master.php.net/note/reject/82688 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#138647) next »