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 :: how to mask phone number in php 
Php :: wordpress query multiple post ids 
Php :: showing php code in browser 
Php :: where not null in laravel 
Php :: carbon months between dates 
Php :: how to add attributes to an object in php 
Php :: write in a file using php 
Php :: carbon difference between two dates 
Php :: php heredoc 
Php :: laravel custom attributes 
Php :: pass javascriot value from one page to another 
Php :: create slug with php 
Php :: setinterval php 
Php :: php jquery plus 1 day 
Php :: laravel composer update 
Php :: how to change existing migration laravel 
Php :: check if array value exists in another array php 
Php :: install laravel 
Php :: php get tempfile 
Php :: add log in laravel 8 
Php :: dompdf laravel page break 
Php :: how assign default value to laravel migration column 
Php :: clear array php 
Php :: migrate specific file laravel 
Php :: php list directories 
Php :: reset password multipple database laravel 
Php :: laravel seconds to hours minutes seconds 
Php :: php isset array 
Php :: ubuntu laravel storage permission 
Php :: order by in datatable laravel 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =