@ 2016-11-22T07:15:51Z <?php
$str='{"id"col;1,"jsonrpc"col;"2.0","result"col;{"audiostreams"col;[{"bitrate"col;0,"channels"col;8,"codec"col;"truehd","index"col;0,"language"col;"eng","name"col;"Dolby TrueHD 7.1"},{"bitrate"col;384000,"channels"col;6,"codec"col;"ac3","index"col;1,"language"col;"eng","name"col;"AC3 5.1"},{"bitrate"col;448000,"channels"col;6,"codec"col;"ac3","index"col;2,"language"col;"cze","name"col;"AC3 5.1"},{"bitrate"col;445591,"channels"col;6,"codec"col;"ac3","index"col;3,"language"col;"hin","name"col;"AC3 5.1"},{"bitrate"col;448000,"channels"col;6,"codec"col;"ac3","index"col;4,"language"col;"hun","name"col;"AC3 5.1"},{"bitrate"col;448000,"channels"col;6,"codec"col;"ac3","index"col;5,"language"col;"pol","name"col;"AC3 5.1"},{"bitrate"col;448000,"channels"col;6,"codec"col;"ac3","index"col;6,"language"col;"rus","name"col;"AC3 5.1"},{"bitrate"col;448000,"channels"col;6,"codec"col;"ac3","index"col;7,"language"col;"tha","name"col;"AC3 5.1"},{"bitrate"col;192000,"channels"col;2,"codec"col;"ac3","index"col;8,"language"col;"tur","name"col;"AC3 Stereo"}]}}';
var_dump(json_decode($str, true));
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 5.6.0 - 5.6.28 , 7.0.0 - 7.0.20 , 7.1.0 - 7.1.20 , 7.2.0 - 7.2.33 , 7.3.16 - 7.3.33 , 7.4.0 - 7.4.33 , 8.0.0 - 8.0.30 , 8.1.0 - 8.1.28 , 8.2.0 - 8.2.18 , 8.3.0 - 8.3.4 , 8.3.6 NULL
Output for 8.3.5 Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
NULL
preferences:dark mode live preview
173.19 ms | 402 KiB | 191 Q