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
Post a Comment