Hello, I have a php array that I would like to send to a javascript function, like this:
How can I do this, thanks in advance.Code:<?php $arr = array('a','b','c'); ?> <html> <a onclick="showDiv($arr)">show</a> </html> <script> function showDiv(arr){ len = arr.length } </script>


Reply With Quote
Bookmarks