array_push for array object code example
Example 1: add object in array php
$myArray = array("name" => "my name");
echo json_encode($myArray);
Example 2: php add new item to associative array
$a = array('foo' => 'bar'); // when you create
$a['Title'] = 'blah'; // later