When you get a chance, can you take a look at api.client.php? Basically, what I have will work if the response is like this: 2 4 But what I need is for it to generate an array with the sub values too . So I can do like 1 2 4>