Defining array and printing data with for loop array can
Solved Step By Step with Explanation – PHP Variable Arrays & Tables
Question
Solved Step By Step with Explanation –PHP Variable Arrays & Tables
<?php
$x = 17;
?>
```
array("Soda Can", "Cylinder"),
array("Note Pad", "Rectangle"),
for ($i = 0; $i < count($data); $i++) {
echo ($i + 1) . ". The shape of " . $data[$i][0] . " is " . $data[$i][1] . ".\n";
```php
<?php
"556628" => "DarkOliveGreen",
"ffefd5" => "PapayaWhip",
echo '<tr style="background-color: #' . $hex . ';">';
echo '<td>' . $colorName . '</td>';
?>
```
"PeachPuff", "CadetBlue", "BurlyWood",
"DarkOliveGreen", "PapayaWhip", "HotPink"
);
echo '<table border="1">';
echo '</tr>';
}