Hi, i'm having some problem on creating a JSON starting from an array, when I try to create an array by inserting a key and an element it doesn't work, it actually takes only the element and the key remains empty.
$jsonArray = Array($id_id => $values['username1']);
$newJson = json_encode($jsonArray);
$id_id = 330, usernam1 = admin [size="2"]result: (null,admin)?[/size]
json_encode returns null
thanks