array_push() function inserts one or more element to the end of an array
syntax
array_push(array,val1,val2,...)
Output
Array([0]=>india
[1]=>pak
[2]=>usa
[3]=>uk)
syntax
array_push(array,val1,val2,...)
<?php $sum=array("india","pak"); array_push($arr,"usa","uk"); print_r($sum); ?> |
Array([0]=>india
[1]=>pak
[2]=>usa
[3]=>uk)
0 comments:
Post a Comment