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

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

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