note 74934 deleted from function.json-encode by felipe

From: Date: Mon, 10 Dec 2007 17:30:01 +0000
Subject: note 74934 deleted from function.json-encode by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-133168@lists.php.net to get a copy of this message
Note Submitter: php_dev at dunnbypaul dot net ---- The obvious use of this function is to transmit data objects via a web server to a web page via AJAX. Here is the simple way to convert the data into a javascript object (or data structure) once received: <script type='text/javascript'> function json_decode(jsonstr) { data = eval('('+jsonstr+')'); return data; } </script>

« previous php.notes (#133168) next »