Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 14th, 2012  |  syntax: None  |  size: 0.80 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <!DOCTYPE html>
  2. <html lang="nl">
  3.     <head>
  4.         <meta charset="utf-8">
  5.         <title>Week 1 - Activiteit 9 - Wat doet de time() functie?</title>
  6.         <style type="text/css">
  7.             span { display: inline-block; width: 200px; }
  8.         </style>
  9.     </head>
  10.     <body>
  11.         <?php
  12.         /**
  13.          * @author  Dominique de Graaff
  14.          * @since   11-02-2012
  15.          */
  16.         // Variables
  17.         $time = time();
  18.  
  19.         // Output        
  20.         echo ("<h1>\"echo time();\" geeft: $time</h1>\n");
  21.         echo ("\t\t
  22.             <p>
  23.                 <strong>Uitleg:</strong><br/>
  24.                 Met time() functie krijg je een UNIX timestamp terug. <br/>
  25.                 Dit zijn het aantal seconden sinds 1 januari 1970.                    
  26.             </p>\n");
  27.         ?>
  28.     </body>
  29. </html>