/ Published in: PHP
Credits go to Steve at the URL shown
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
{ { if ($a === false) return 'false'; if ($a === true) return 'true'; { { // Always use "." for floats. } { } else return $a; } $isList = true; { { $isList = false; break; } } if ($isList) { } else { } } }
URL: http://usphp.com/manual/en/function.json-encode.php#82904