Check www.php.net/json

You can use the encode function there.

Best regards,
Peter Lauri

www.dwsasia.com - company web site
www.lauri.se - personal web site
www.carbonfree.org.uk - become Carbon Free


> -----Original Message-----
> From: Otto Wyss [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 10, 2007 10:37 PM
> To: php-general@lists.php.net
> Subject: [PHP] Copying PHP array into a Javascript array
> 
> I don't know if I should ask this question here or in the JavaScript
> group. I'll try it here since people usually are more helpful.
> 
> I've an array of file names
> 
>    $files = getFiles ($d);
> 
> but would like to use this array in a JavaScript array. How can I copy
> this $files into a JavaScript variable?
> 
> O. Wyss
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

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

Reply via email to