note 15367 added to function.preg-split

From: Date: Thu, 06 Sep 2001 20:23:52 +0000
Subject: note 15367 added to function.preg-split
Groups: php.notes 
Request: Send a blank email to php-notes+get-17742@lists.php.net to get a copy of this message
owh, and for some extra notes on the messages above about why u have to use the / with preg_split is indeed becuz its perl and then u define the actual regex with it..it's called delimiter, thus the regex delimiter, outside the delimiter you can define modifiers.. (at least that's how it works with preg_match_all) uhm,without modifier: preg_split("'\s+'"," {$str} ") with modifier: preg_split("'\s+'i"," {$str} ") check the actual PCRE manual for regex information :-) Good luck, Emile Bosch http://www.php.net/manual/en/function.preg-split.php

« previous php.notes (#17742) next »