note 87194 deleted from function.str-split by crell

From: Date: Wed, 29 Jun 2022 17:56:20 +0000
Subject: note 87194 deleted from function.str-split by crell
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-218669@lists.php.net to get a copy of this message
Note Submitter: thax ---- 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].

« previous php.notes (#218669) next »