Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

adding data dynamically to empty array in php

$array[] = "item"; // for your $arr1 
$array[$key] = "item"; // for your $arr2
array_push($array, "item", "another item");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #adding #data #dynamically #empty #array #php
ADD COMMENT
Topic
Name
6+3 =