将内容保存到数组中[关闭]

I generate an array with a php file by calling a remote server. The return looks as follows. How can I capture this content into an array?

Array
(
[0] => Array
    (
[ID] => 00d9fd1b-5533-423a-9396-06ccbd69a06f
[NAME] => Icecream
[PRICE] => 3 
    )
[1] => Array (
[ID] => 022a8ef9-435c-4cb3-9977-87abba6649e4
[NAME] => Chocolate
[PRICE] => 12
    )
)

My php file calls the other php file and makes an sql query with using POST method. I try to capture the content as follows, but doesn't work. The whole array will be in another array...

$result = do_post_request("http://www.example.com/proxyslq.php", "query=SELECT * FROM PRODUCTS", 0);

Sorry if the question is wrong, I'm a beginner programmer.

You can serialize array in remote server and unserialize the string to get array:

$string = serialize($array);

$array = unserialize($string);