note 124795 deleted from function.explode by salathe
| From: | salathe@php.net | Date: | Mon, 21 Sep 2020 14:49:47 +0000 |
| Subject: | note 124795 deleted from function.explode by salathe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-215336@lists.php.net to get a copy of this message | ||
Note Submitter: shivamshrm235 at gmail dot com
----
BEWARE:
Explode on an empty string doesn't return an empty array, It returns an array of one
element whose value is an empty string.
<?php
$str="";
$a = explode("#",$str);
var_dump($a);
/*
OUTPUT:
array(1) {
[0]=>
string(0) ""
}
*/
?>