I want to get php array element using javascript variable as an index of a php array. I have tried this below method but it doesn't work.
// I want to get value of $arr[0] and here array index is a javascript variable
<script type="text/javascript">
function select_seller()
{
d = document.getElementById('seller_id').value;
document.write("<?php echo $arr['<script>document.write(d)</script>'];?>");
}
</script>
Please Help me