Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php table

<?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>";
?>
Comment

php tableaux

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

PREVIOUS NEXT
Code Example
Php :: PHP DOMDocument, Unicode problems 
Php :: Eagar loading,parent child relationship,Sub relationship in laravel 
Php :: PHP nl2br — Inserts HTML line breaks before all newlines in a string 
Php :: datetime confict function php 
Php :: laravel 8 app with more than one database 
Php :: error import php 
Php :: laravel required_if fileld has value 
Php :: laravel 8 ui auth 
Php :: composer require laravelcollection 
Php :: old codestar radio field 
Php :: share var in a maser layout laravel 
Php :: dont allow this command to every one set in meddlware laravel 
Php :: display page template using functions.php 
Php :: auth guard (admin) is not defined laravel 8 
Php :: executer page php via boutton 
Php :: php delete acc 
Php :: upload and view pdf file in php 
Php :: Laravel Mix npm run production error 
Php :: how to check if a user sent you money in paypal in php 
Php :: laravel route name with parameters 
Php :: just page name in url 
Php :: Select specefied columns from all data in laravel 
Php :: how to pass value from one php page to another using session 
Php :: define value in php 
Php :: progress bar calculate percentage php 
Php :: how to validate phone number in php procedural programming 
Java :: java get class by string 
Java :: what are the hibernate dependencies 
Java :: java get excectuon time 
Java :: zufallszahlen in java 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =