Answers for "php add new key to end of array"

PHP
6

add item to array in php

<?php

$a=array("red","green");

array_push($a,"blue","yellow");

print_r($a);
?>
Posted by: Guest on May-25-2020

Code answers related to "php add new key to end of array"

Browse Popular Code Answers by Language