|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-04-09 09:10 UTC] mfischer@php.net
[2002-09-24 04:54 UTC] ed at avi dot ru
[2011-05-05 14:18 UTC] admin2011 at luebker dot org
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 13:00:01 2025 UTC |
PREG_SPLIT_DELIM_CAPTURE does not work - preg_split() simply omits the delimiters disregarding the flag. The following line: print_r(preg_split('/a/', 'mama', -1, PREG_SPLIT_DELIM_CAPTURE)); ...returns: Array ( [0] => m [1] => m [2] => ) ...just like without the last argument - while it should return: Array ( [0] => m [1] => a [2] => m [3] => a [4] => )