note 95476 added to function.json-encode
| From: | rene at osu1 dot php dot net | Date: | Tue, 05 Jan 2010 07:22:38 +0000 |
| Subject: | note 95476 added to function.json-encode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-164650@lists.php.net to get a copy of this message | ||
[mods:] The functions that i listed earlier on this page do not handle HTML within JSON very well.
please remove those 2 comments, this is the final update to my contribution for this page:[/mods]
I've built a few helper functions to lift large & deep PHP arrays to javascript via JSON,
and to show such data-structures initially collapsed, with some functions to click-and-see the
sub-values.
HTML within JSON strings and JSON within JSON are supported.
Dumping an array from PHP is as simple as
htmlDump ($arr, $title);
For a demo & download (LGPL) see http://skatescene.biz/jsonDebug-1.0.0/
----
Server IP: 83.137.20.135
Probable Submitter: 212.123.162.96
----
Manual Page -- http://www.php.net/manual/en/function.json-encode.php
Edit -- https://master.php.net/note/edit/95476
Del: integrated -- https://master.php.net/note/delete/95476/integrated
Del: useless -- https://master.php.net/note/delete/95476/useless
Del: bad code -- https://master.php.net/note/delete/95476/bad+code
Del: spam -- https://master.php.net/note/delete/95476/spam
Del: non-english -- https://master.php.net/note/delete/95476/non-english
Del: in docs -- https://master.php.net/note/delete/95476/in+docs
Del: other reasons-- https://master.php.net/note/delete/95476
Reject -- https://master.php.net/note/reject/95476
Search -- https://master.php.net/manage/user-notes.php