Hi all im having slight trouble trying to escape this php array index in a javascript block
<script>
var herp = $('#item').val();
var derp = '<?php echo $array['+herp+']['0']['name'];?>';
</script>
problem is the browser keeps making the whole line php, oposed to counting the var herp as javascript.
any ideas how to correctly escape this?
-Cheers
Soapy!