Hi there
There are lots of way that a PHP script can pass arrays to JavaScript...
you can output the array to javascript like:
$fls is an array.
rnd_imagesnames = new Array(
for ($i = 0; $i < $count; $i++)
{
echo "'" . $fls[$i] . "'";
if ($i != $count - 1)
Hello,
I have a question here. Can I pass an Array (php) to a javascript
function, and then process the array there using javascript? How do I
access the php array in javascript then?
Say, all I want a do is to iterate through the array and build a string
using javascript, for example.
How
2 matches
Mail list logo