note 117982 deleted from function.explode by cmb

From: Date: Fri, 18 Dec 2015 10:06:08 +0000
Subject: note 117982 deleted from function.explode by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-204477@lists.php.net to get a copy of this message
Note Submitter: Marek ---- The default $limit is NULL, but actually passing NULL as the $limit parameter instead of omitting it will yield different results: <?php explode('-', 'A-B-C', null); /*returns*/ [ 0 => 'A-B-C', ]; explode('-', 'A-B-C'); /*returns*/ [ 0 => 'A', 1 => 'B', 2 => 'C', ]; ?>

« previous php.notes (#204477) next »