Re: how to pass an array to Java script

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

 



Johny John wrote:
>          How to pass an array (from php )  to java script 

http://www.json.org/ is a good choice.

PHP implementations include http://mike.teczno.com/json.html and
http://www.aurore.net/projects/php-json/

>          and display it using javascript?...

That depends on how you want to display it (and if you just want to display
it, why aren't you rendering HTML with the PHP in the first place?).

-- 
David Dorward       <http://blog.dorward.me.uk/>   <http://dorward.me.uk/>
                     Home is where the ~/.bashrc is

-- 
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