insert key-value pair into array php
snippet in php

insert key-value pair into array php

user3161

// 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";