[PHP] append to array?

2003-02-15 Thread JJ Harrison
I have actually rtfm and can't seem to find a function to add onto the end
of an array. Is there a function to do it or do i need to write my own?


--
---
JJ Harrison
[EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] append to array?

2003-02-15 Thread Jason Wong
On Saturday 15 February 2003 18:23, JJ Harrison wrote:
 I have actually rtfm and can't seem to find a function to add onto the end
 of an array. Is there a function to do it or do i need to write my own?

array_push()

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Truth will out this morning.  (Which may really mess things up.)
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] append to array?

2003-02-15 Thread Ernest E Vogelsinger
At 11:23 15.02.2003, JJ Harrison said:
[snip]
I have actually rtfm and can't seem to find a function to add onto the end
of an array. Is there a function to do it or do i need to write my own?
[snip] 

array_push($the_array, $the_value_to_append);

--or--

$the_array[] = $the_value_to_append;


-- 
   O Ernest E. Vogelsinger
   (\)ICQ #13394035
^ http://www.vogelsinger.at/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php