note 20414 deleted from function.preg-split by sniper

From: Date: Tue, 30 Sep 2003 12:33:38 +0000
Subject: note 20414 deleted from function.preg-split by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-57483@lists.php.net to get a copy of this message
Note Submitter: mchirico@med.upenn.edu ---- The following: $r=preg_split("(one|two|\(.*\))","1one2two3one4(stuff)5") ; reset ($r); while (list ($key, $val) = each ($r)) { echo "$key => $val<br>"; } Will produce: 0 => 1 1 => 2 2 => 3 3 => 4 4 => 5

« previous php.notes (#57483) next »