<?php $a = [ false, 0, 'false', 'test',]; $json = json_encode($a); var_dump($json); $b = json_decode($json); var_dump($b);
Standard input is empty
string(24) "[false,0,"false","test"]" array(4) { [0]=> bool(false) [1]=> int(0) [2]=> string(5) "false" [3]=> string(4) "test" }
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!