Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php array push with key

<?php
$a=array("a"=>"red","b"=>"green");
array_push($a,"blue","yellow");
print_r($a);
?>
 
PREVIOUS NEXT
Tagged: #php #array #push #key
ADD COMMENT
Topic
Name
2+3 =