Copying PHP array into a Javascript array
| From: | Otto Wyss | Date: | Tue, 10 Apr 2007 20:36:35 +0000 |
| Subject: | Copying PHP array into a Javascript array | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-252466@lists.php.net to get a copy of this message | ||
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