View Single Post
  #124 (permalink)  
Old 05-30-2008, 01:46 AM
naina naina is offline
D-Web Trainee
 
Join Date: May 2008
Posts: 8
naina is on a distinguished road
Default Re: Using Arrays in PHP

array_push

array_push -- Push one or more elements onto the end of array

Example: array_push()

$stack = array ("orange", "banana");
array_push ($stack, "apple", "raspberry");


This example would result in $stack having the following elements:
Array
(
[0] => orange
[1] => banana
[2] => apple
[3] => raspberry
)
__________________
Web Templetes
Web site Design
Reply With Quote