note 34542 added to function.preg-split

From: Date: Wed, 30 Jul 2003 12:22:20 +0000
Subject: note 34542 added to function.preg-split
Groups: php.notes 
Request: Send a blank email to php-notes+get-53002@lists.php.net to get a copy of this message
i'm German, so sorry for my English. I've a prob, so maibe someone can help me: i try to do split a string, but there are no separators in it. what i've got is for example: 123abc456def the split i need is: $ar[0] -> "123" $ar[1] -> "abc" $ar[2] -> "456" $ar[3] -> "def" it can also be: abc123def456 $ar[0] -> "abc" $ar[1] -> "123" $ar[2] -> "def" $ar[3] -> "456" the split - function i need must split both of examples you can mail me, thx for help ---- Manual Page -- http://www.php.net/manual/en/function.preg-split.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34542 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34542&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34542&report=yes

« previous php.notes (#53002) next »