Answers for "how to push into an array inside a function php"

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 "how to push into an array inside a function php"

Browse Popular Code Answers by Language