php json_decode array of objects code example Example: parse json phph echo json_decode("[1,2,3]")[0];