Difference between revisions of "PHP - Adding values to an array"
From MyWiki
(Created page with "<source lang="php"> <?php $stack = array("orange", "banana"); array_push($stack, "apple", "raspberry"); print_r($stack); ?> </source>") |
(No difference)
|
Revision as of 12:36, 4 April 2019
<?php $stack = array("orange", "banana"); array_push($stack, "apple", "raspberry"); print_r($stack); ?>