<?php
$aa = array("a", "b", "c");
?>
<script type='text/javascript'>
function test()
{
var p = new array('<?php echo implode("', '", $aa); ?>')
}
</script>
First off, it's var, not varr... secondly, it's function test, not functiontest, and thirdly, use type='' not language='' which is now becoming depreciated.
Kind regards,
Scott