note 28498 added to function.array-merge
| From: | marko at rack1 dot php dot net | Date: | Tue, 14 Jan 2003 22:53:35 +0000 |
| Subject: | note 28498 added to function.array-merge | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-42149@lists.php.net to get a copy of this message | ||
Not sure if this is a bug or an undocumented feature, but array_merge accepts not only arrays as
parameters, check out this line:
var_dump(array_merge(array('hello', 'world'), 'now', 'here',
array('more', 'and more'), 1));
returns a nice single array containing all the values.
--
http://www.php.net/manual/en/function.array-merge.php
http://master.php.net/manage/user-notes.php?action=edit+28498
http://master.php.net/manage/user-notes.php?action=delete+28498
http://master.php.net/manage/user-notes.php?action=reject+28498