Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

add item to array in php

<?php

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

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

print_r($a);
?>
Source by www.bitdegree.org #
 
PREVIOUS NEXT
Tagged: #add #item #array #php
ADD COMMENT
Topic
Name
6+1 =