Answers for "php doc array_push"

PHP
6

array_push in php

<?php
// Insert "blue" and "yellow" to the end of an array:


$a=array("red","green");
array_push($a,"blue","yellow");
print_r($a);
?>
Posted by: Guest on October-05-2020
0

array_push

// The array_push() function inserts one or more elements to the end of an array.

$a=array("red","green");
array_push($a,"blue","yellow");
print_r($a);
Posted by: Guest on August-22-2021

Browse Popular Code Answers by Language