how to read json response starting with [ in php code example Example: parse json phph echo json_decode("[1,2,3]")[0];