object get vars php code example
Example 1: js delete object in dict
delete myArray[id_to_remove];
Example 2: add object in array php
$myArray = array("name" => "my name");
echo json_encode($myArray);
delete myArray[id_to_remove];
$myArray = array("name" => "my name");
echo json_encode($myArray);