Re: Using large multi dimenstional arrays in js

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxx ]
[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.

[----------------------------------- ]










--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux