![]() |
|
|
+ Search |
![]()
|
Sep 17th, 1999 01:14
Nathan Wallace, Richard Lynch
If you have an array in PHP:
$a = array('a', 'b', 'c');
you can add new items to the end like this:
$a[] = 'd';
$a[] = 'e';
in PHP 4 you can use:
array_push($a, 'd', 'e')
to append any number of elements to the array.