aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2013-07-02 09:20:44 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2013-07-15 08:27:16 +0200
commitec8c9b9db723ad2862beaadab7019403afad5dc6 (patch)
tree602e96f25692b5477b4561b39be81368b7d7fe26
parent044d48e4e0faa2bc9416c6ce08c8e43a5b03f11d (diff)
downloadUstring-ec8c9b9db723ad2862beaadab7019403afad5dc6.zip
Ustring-ec8c9b9db723ad2862beaadab7019403afad5dc6.tar.gz
Ustring-ec8c9b9db723ad2862beaadab7019403afad5dc6.tar.bz2
split() default flag is PREG_SPLIT_NO_EMPTY.
-rw-r--r--String.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/String.php b/String.php
index ad4f4b7..916b681 100644
--- a/String.php
+++ b/String.php
@@ -351,7 +351,7 @@ class String implements \ArrayAccess, \Countable, \IteratorAggregate {
* PREG_SPLIT_OFFSET_CAPTURE.
* @return array
*/
- public function split ( $pattern, $limit = -1, $flags = 0 ) {
+ public function split ( $pattern, $limit = -1, $flags = PREG_SPLIT_NO_EMPTY ) {
return preg_split(
static::safePattern($pattern),