note 87194 added to function.str-split

From: Date: Mon, 24 Nov 2008 02:44:01 +0000
Subject: note 87194 added to function.str-split
Groups: php.notes 
Request: Send a blank email to php-notes+get-146851@lists.php.net to get a copy of this message
Regarding ricordatis comment on preg_match_all('/./u',...) instead of preg_split('//u',...): You'll have to use the pattern '/./us' with preg_match_all to get exactly the same behaviour w.r.t. newlines. Don't know if this is still faster, though. Oh, and the expected result is in $array[0]. ---- Server IP: 217.160.72.57 Probable Submitter: 88.77.131.147 ---- Manual Page -- http://www.php.net/manual/en/function.str-split.php Edit -- https://master.php.net/note/edit/87194 Del: integrated -- https://master.php.net/note/delete/87194/integrated Del: useless -- https://master.php.net/note/delete/87194/useless Del: bad code -- https://master.php.net/note/delete/87194/bad+code Del: spam -- https://master.php.net/note/delete/87194/spam Del: non-english -- https://master.php.net/note/delete/87194/non-english Del: in docs -- https://master.php.net/note/delete/87194/in+docs Del: other reasons-- https://master.php.net/note/delete/87194 Reject -- https://master.php.net/note/reject/87194 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#146851) next »