RE: [PHP] adding elements onto an array

From: Date: Wed, 16 Aug 2000 17:12:36 +0000
Subject: RE: [PHP] adding elements onto an array
Groups: php.general 
Request: Send a blank email to php-general+get-12065@lists.php.net to get a copy of this message
To push an element onto the end of an array, you can simply do: $arrayname[] = "some stuff here"; --- Kurt A. Boyer Advanced Software Engineer Matchlogic, Inc. http://www.matchlogic.com -----Original Message----- From: Kevin Beckford [mailto:kbeckford@bigorbit.com] Sent: Wednesday, August 16, 2000 11:11 AM To: GPHP Subject: [PHP] adding elements onto an array I am stuck using php3 for now. I need to loop through an array and add certain elements to another array. I have php4 on the brain and all I can think of is the array_push function, which really, is what I want. However, I must do this in php3. How would I go about this? ______________________________________ Kevin Beckford Programmer Big Orbit - Specializing in new media for youth www: http://www.bigorbit.com email: kbeckford@bigorbit.com [t] 416.516.0705 [f] 416.516.9256 "Intelligence is a tool used achieve goals, however goals are not always chosen wisely..." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#12065) next »