לפני שאני שואל אני רק מתחיל אז אל תגידו לי. וואי איזה פשוט. איזה מעפאן. אני ממש ממש רק בהתחלה.
PHP קוד:
<html>
<head>
<title> language of country </title>
<head>
<body>
<h1> The Lang In Table </h1>
<h3> By DanielS </h3>
<?php
$lang = array(1 => "Hebrew", "English", "Spanish");
$country = array(1 => "Israel", "USA", "Spain");
?>
<table border="1" width="100%" id="table1" cellspacing="0" cellpadding="0" bordercolor="#000000">
<tr>
<td>
<p align="center"><u><b>Country</b></u></td>
<td>
<p align="center"><u><b>Lang</b></u></td>
</tr>
<tr>
<td align="center"><?php echo $country[1] ?></td>
<td align="center"><?php echo $lang[1] ?></td>
</tr>
<tr>
<td align="center"><?php echo $country[2] ?></td>
<td align="center"><?php echo $lang[2] ?></td>
</tr>
<tr>
<td align="center"><?php echo $country[3] ?></td>
<td align="center"><?php echo $lang[3] ?></td>
</tr>
</table>
</body>
</html>
השאלה שלי היא כזאת. איך אני יעשה לולאה שתסדר את זה בידיוק לפי הסדר הנוכחי בלולאה.
תודה,
דניאל