RE: [PHP] class to generate Javascript Object ??
| From: | Andrea Giammarchi | Date: | Sun, 04 Oct 2009 14:31:10 +0000 |
| Subject: | RE: [PHP] class to generate Javascript Object ?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-298555@lists.php.net to get a copy of this message | ||
> I'm thinking (hoping) there is already a php class somewhere for
> generating JavaScript object strings that I can instead of my ugly
> easily breakable way of doing it.
>
> Anyone know of one?
json_encode
http://uk3.php.net/manual/en/function.json-encode.php
Regards
_________________________________________________________________
Windows Live Hotmail: Your friends can get your Facebook updates, right from Hotmail®.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_4:092009