note 90054 added to function.iconv

From: Date: Fri, 03 Apr 2009 10:57:44 +0000
Subject: note 90054 added to function.iconv
Groups: php.notes 
Request: Send a blank email to php-notes+get-152786@lists.php.net to get a copy of this message
Here a very small but useful way to handle text files before further using them: <?php $in = file("/tmp/myfile.txt"); $out = fopen("/tmp/myfile.txt", "w"); foreach ($in as $line) { fputs($out, iconv("UTF-8","ISO-8859-1", $line));} ?> ---- Server IP: 212.124.37.9 Probable Submitter: 149.217.48.20 ---- Manual Page -- http://www.php.net/manual/en/function.iconv.php Edit -- https://master.php.net/note/edit/90054 Del: integrated -- https://master.php.net/note/delete/90054/integrated Del: useless -- https://master.php.net/note/delete/90054/useless Del: bad code -- https://master.php.net/note/delete/90054/bad+code Del: spam -- https://master.php.net/note/delete/90054/spam Del: non-english -- https://master.php.net/note/delete/90054/non-english Del: in docs -- https://master.php.net/note/delete/90054/in+docs Del: other reasons-- https://master.php.net/note/delete/90054 Reject -- https://master.php.net/note/reject/90054 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#152786) next »