note 78595 deleted from function.array-merge by danbrown

From: Date: Mon, 20 Jun 2011 15:25:15 +0000
Subject: note 78595 deleted from function.array-merge by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-180759@lists.php.net to get a copy of this message
Note Submitter: sam_hunting2004 at yahoo dot com ---- Re: Renumbering arrays: This (from rcarvalhoREMOVECAPS at clix dot pt): $a = array_merge($a, null); does not renumber the array in PHP5. However this: $a = array_merge($a, array()); does renumber the $a array in PHP5. I think that's more clear than the other renumbering proposal, though I don't know about performance: $b = implode(" ", $a); $a = explode(" ", $b); Hope this helps...

« previous php.notes (#180759) next »