> array_push() in php ~ Online tutorial

array_push() in php

array_push() function inserts one or more element to the end of an array
syntax
array_push(array,val1,val2,...)


<?php

$sum=array("india","pak");
array_push($arr,"usa","uk");

print_r($sum);

?>

Output
Array([0]=>india
[1]=>pak
[2]=>usa
[3]=>uk)

Please Give Us Your 1 Minute In Sharing This Post!
Please Give Us Your 1 Minute In Sharing This Post!
SOCIALIZE IT →
FOLLOW US →
SHARE IT →
Powered By: BloggerYard.Com

0 comments: