“PHP Tableaux” Kod odpowiedzi

Tabela PHP

<?php
$rows = 10; // define number of rows
$cols = 4;// define number of columns

echo "<table border='1'>";

for($tr=1;$tr<=$rows;$tr++){

    echo "<tr>";
        for($td=1;$td<=$cols;$td++){
               echo "<td>row: ".$tr." column: ".$td."</td>";
        }
    echo "</tr>";
}

echo "</table>";
?>
Nervous Nightingale

PHP Tableaux

<?php
$recipes[] = 'Cassoulet'; // Créera $recipes[0]
$recipes[] = 'Couscous'; // Créera $recipes[1]
$recipes[] = 'Escalope Milanaise'; // Créera $recipes[2]
?>
Elias Rayan

Odpowiedzi podobne do “PHP Tableaux”

Pytania podobne do “PHP Tableaux”

Więcej pokrewnych odpowiedzi na “PHP Tableaux” w PHP

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu