Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

insert key-value pair into array php

// If you are creating new array then try this :
$arr = array("key" => "value");

// And if array is already created then try this :
$arr["key"] = "value";
 
PREVIOUS NEXT
Tagged: #insert #pair #array #php
ADD COMMENT
Topic
Name
7+5 =