-------------------------------------------------
How can I use an array (say $ImgArra) of Php in a function Javascript?
-------------------------------------------------
Moderators: macek, egami, gesf

drimades wrote:How can I use an array (say $ImgArra) of Php in a function Javascript?

<script language=javascript>
<?php
foreach ($arr as $key => $value) {
echo 'arreg[' . $key . '] = ' . $value . "\n";
}
?>
</script>

Users browsing this forum: No registered users and 1 guest