Advertisement
Guest User

Untitled

a guest
Nov 25th, 2014
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.18 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <title>Arrays</title>
  5.     <style type="text/css">
  6.     body {
  7.         background-image: url('http://silviahartmann.com/background-tile-art/images/black_woven_seamless_tile.jpg');
  8.         background-color: pink;
  9.         color: white;
  10.     }
  11.     .box {
  12.         margin-left: auto;
  13.         margin-right: auto;
  14.         background-color: rgba(82, 77, 77, 0.8);
  15.         width: 500px;
  16.         padding: 20px;
  17.         margin-top: 80px;
  18.         box-shadow:2px 2px 10px 10px #000;
  19.         -webkit-box-shadow:2px 2px 10px 10px #000;
  20.         -moz-box-shadow:2px 2px 10px 10px #000;
  21.     }
  22.     td {
  23.         padding: 5px;
  24.     }
  25.     </style>
  26. </head>
  27. <body>
  28.     <div class="box">
  29.     <h2>Arrays</h2>
  30.         <?php
  31.                 $browser = array("IE",  "FF",   "SA",   "Op",   "CH");
  32.                
  33.                 $browser[3]= "OP";
  34.                
  35.                 $nummer = array("1", "2", "3",  "4", "5", "6", "7", "8", "9", "10");
  36.                 $count=count($nummer);
  37.                
  38.                 $return = "<table>";
  39.                 for($i=0; $i < $count; $i++)
  40.                 {
  41.                     $antwoord = $nummer[$i] * 10;
  42.                     $return .= "<tr><td>".$nummer[$i] . "</td><td>x 10 = </td><td>" . $antwoord . "</td></tr>";
  43.                 }
  44.                 $return .= "</table>";
  45.                 echo $return;
  46.         ?>
  47.     </div>
  48. </body>
  49. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement