Language:EN
Pages: 4
Words: 308
Rating : ⭐⭐⭐⭐⭐
Price: $10.99
Page 1 Preview
defining array and printing data with for loop arr

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>';

}

You are viewing 1/3rd of the document.Purchase the document to get full access instantly

Immediately available after payment
Both online and downloadable
No strings attached
How It Works
Login account
Login Your Account
Place in cart
Add to Cart
send in the money
Make payment
Document download
Download File
img

Uploaded by : Purab Bumb

PageId: DOC801583F