Array functions in PHP4.
| From: | John Parker | Date: | Tue, 11 Jan 2000 13:35:52 +0000 |
| Subject: | Array functions in PHP4. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-14497@lists.php.net to get a copy of this message | ||
This is probably the wrong mailing list - my apologies if is this is
off-topic.
I'm currently implementing a slashdot-alike, and I've run into a bit of a
brick wall. I'm just wondering if it's likely that an 'array_add' function
is liable to make it into PHP 4.
This could work in a similiar manner to 'array_merge', but would simply add
a new dimension to the array where the keys in the n'th array match the keys
in the first array.
ie: $array = array_add(array primary_array, array array2, array
array3, ...);
I could of course work around this in PHP, but it seems more elegant (to me
at least) to tackle this at the API level.
Only an idea.
Regards,
John Parker.
------------------------------------------------------------------
John Parker email: jparker@itchannel.net
Internet Project Manager/Software Engineer web:www.itchannel.net
itCHANNEL International Ltd. tel: +44 (0) 1202 291939