note 8943 added to implode
| From: | v at w dot cl | Date: | Sat, 07 Oct 2000 07:49:08 +0000 |
| Subject: | note 8943 added to implode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-6200@lists.php.net to get a copy of this message | ||
Implode and explode can behave differently.
I can write
$a=implode($array,"|");
and $a would be the expected string separated by |.
But if I write
$array=explode($a,"|");
$array would NOT be the original $array, but an empty value.
And neither implode or explode throws a warning about the bad parameter passing.
http://www.php.net/manual/function.implode.php