JSON / PHP : Json_encode with [ ] -



JSON / PHP : Json_encode with [ ] -

i write request in php, don't know how translate [,] in php request :

json :

{ "output": "extend", "filter": { "host": [ "zabbix server", "linux server" ] } }

php :

array( 'output' => 'extend', 'filter' => array ( 'host' => ??? "zabbix server", "linux server" ??? ) )

can please help me ? give thanks in advance.

do not reinwent wheel. utilize json_decode() job: http://www.php.net/manual/en/function.json-decode.php

php json

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

How do you set up a perforce server to work over the internet? -

ios - Lagging ScrollView with UIWebview inside -