note 54510 deleted from function.array-merge by levim
| From: | levim@php.net | Date: | Mon, 24 Feb 2014 22:53:46 +0000 |
| Subject: | note 54510 deleted from function.array-merge by levim | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-198678@lists.php.net to get a copy of this message | ||
Note Submitter: arduenn at gmail dot com
----
As "rcarvalhoREMOVECAPS at clix dot pt" suggested above,
$a = array_merge($a, null);
does renumber the $a array. However, this only works with PHP4, not with PHP5. PHP5 users might try
the following:
$b = implode(" ", $a);
$a = explode(" ", $b);
Hope this helps someone too ;-)