|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-02-04 09:44 UTC] tlb at nonamecrew dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 09:00:01 2025 UTC |
hello for my small logic parser and sql-query-generator I used preg_split with PREG_SPLIT_DELIM_CAPTURE flag like shown below, but now with 4.1.1 my result $elements is empty an the rest of my function work with a empty array and nothing happen. // my input is like $inString = array('tlb | test'); // use of preg_split $elements = preg_split ("/\s+|(\()|(\))|(\\\\\")|(\+)|(,)|(&)|(!)|(\|)/", $inString, -1, PREG_SPLIT_NO_EMPTY|PREG_SPLIT_DELIM_CAPTURE); // output, result was in 4.0.6 like ... $elements[0] ='tlb' $elements[1] ='|' $elements[2] ='test' cu tlb