Re: Using large multi dimenstional arrays in js

From: Date: Wed, 17 Jun 2009 22:39:37 +0000
Subject: Re: Using large multi dimenstional arrays in js
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-294188@lists.php.net to get a copy of this message
Hi... you can use 'json_encode'... http://de2.php.net/manual/de/function.json-encode.php like this... <script type="text/javascript"> var my_js_array = <?= json_encode($my_php_array) ?>; </script> YT BB Am 18.06.2009 um 00:32 schrieb Sancar Saran:
Hello all, My new project needs to use large multi dimenstional php arrays in javascript. I'm not sure how to do it. Is there any lead or any one give a clue. Regards Sancar --PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[Björn Bartels                       ]
[email : bartels@dragon-projects.de ] [home : http://dragon-projects.de ]
[skype :                  bb-drummer ]
[----------------------------------- ] Diese E-Mail könnte vertrauliche und/oder rechtlich geschützte Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. [----------------------------------- ]

« previous php.general (#294188) next »