<?php
$tipi = array("asd","222","dda","xcs");
$gun = array("qwe","vvv","zzz","bffg");
$ay = array("asd","bbb","23a","wqe");
$yil=array("zzz","sad","cxc","zxca");
$say=0 ?>
<script>
var tipi = new Array();
var gun = new Array();
var ay = new Array();
var yil = new Array();
for(var j=0;j<4;j++)
{
tipi[j] = " <?php echo "$tipi[$say]" ?> ";
gun[j] = " <?php echo "$gun[$say]" ?> ";
ay[j] = " <?php echo "$ay[$say]" ?> ";
yil[j] = " <?php echo "$yil[$say]" ?> ";
<?php $say++; ?>
}
</script>
//I have arrays in php code. I want to transfer this values in javascript code. I want to increase $say' s value in javascript code. But not working. What Can I do?