miniass - PHP Online
Form of PHP Sandbox
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of miniass.php
- <style>
- body {
- background-color: black;
- text-align: center;
- color: white;
- }
- table, th, td {
- border: 1px solid white;
- border-collapse: collapse;
- }
- </style>
- <?php
- $Arai_Helmet_1 = array('Name' => 'Quantum-X', 'Description' => 'Description', 'Color' => 'Color', 'Price' => 'Price');
- $Arai_Helmet_2 = array('Name' => 'Name', 'Description' => 'Description', 'Color' => 'Color', 'Price' => 'Price');
- $Arai_Helmet_3 = array('Name' => 'Name', 'Description' => 'Description', 'Color' => 'Color', 'Price' => 'Price');
- echo '<table align="center">';
- echo '<tr>';
- echo '<th colspan="5">Inventory</th>';
- echo '</tr>';
- echo '<tr>';
- echo '<th>Image </th>';
- echo '<th>Item</th>';
- echo '<th>Description</th><th>Color</th><th>Price</th></tr>';
- for($x = 0; $x < $Arai_Helmet_1; $x++)
- {echo '<tr><td> Photo goes here </td></tr>';
- echo '<td>$Arai_Helmet_1[$Name]</td>';
- echo '<td>$Arai_Helmet_1[$Description]</td>';
- echo '<td>$Arai_Helmet_1[$Color]</td>';
- echo '<td>$Arai_Helmet_1[$Price]</td>';
- echo '</tr>';
- }
- echo '</table';
- ?>
File Description
- miniass
- PHP Code
- 20 Feb-2019
- 1 Kb
You can Share it:
Latest PHP Pastes