This looks to me like a combination of Javascript and PHP, not just PHP.
I'm guessing that the code between the { } is a loop that only stops when certain conditions are met.
Your PHP code should have semi-colons like this:
tipi[j] = " <?php echo "$tipi[$say]"; ?> ";
gun[j] = " <?php echo "$gun[$say]"; ?> ";
ay[j] = " <?php echo "$ay[$say]"; ?> ";
yil[j] = " <?php echo "$yil[$say]"; ?> ";
adres[j] = " <?php echo "$adres[$say]"; ?> ";
cinsiyet[j] = " <?php echo "$cinsiyet[$say]"; ?> ";
Apart from that, I can't see any problem with the PHP code. I'd advise you to post this on the Javascript section of the forum because it's probably a problem with the loop.