Re: Pushing array onto array

From: Date: Sat, 02 Aug 2003 18:09:56 +0000
Subject: Re: Pushing array onto array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-158043@lists.php.net to get a copy of this message
Well I just coded up a very small example, and it pushing 1 array into the other... Check out: http://81.102.229.151/push.php and http://81.102.229.151/push.phps It works exactly how it should... However really the array isn't a 2 dimensional one, since PHP doesn't have them, its rather a array of arrays which is roughly the same thing (and something not to worry about)... If you need more help just email me Andrew ----- Original Message ----- From: "Hank TT" <no_spam@lomaji.com> To: "php-general" <php-general@lists.php.net> Sent: Saturday, August 02, 2003 7:58 AM Subject: [PHP] Pushing array onto array > In comparing Perl's push to array_push in "PHP Developer's Cookbook" (2/e, > p. 76), the authors note that pushing an array onto another produces a > two-dimensional array. However, I have not been able to reproduce their > example result, and php.net/array_push does not document this behavior. > > Just curious. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#158043) next »