53 lines
1.5 KiB
PHP
Executable File
53 lines
1.5 KiB
PHP
Executable File
<?php
|
|
//
|
|
|
|
$tr0 = "<tr style=\"background-color:lightcyan;\">";
|
|
$tr1 = "<tr style=\"background-color:lavender;\">";
|
|
$tr2 = "<tr style=\"background-color:lavenderblush;\">";
|
|
$tr3 = "<tr style=\"background-color:lightgrey;\">";
|
|
|
|
$td_leer = "<td> </td>";
|
|
$td0 = "<td style=\"background-color:lightcyan;\">";
|
|
$td1 = "<td style=\"background-color:lavender;\">";
|
|
$td2 = "<td style=\"background-color:lavenderblush;\">";
|
|
$td3 = "<td style=\"background-color:lightgrey;\">";
|
|
|
|
$bol_debug = true;
|
|
|
|
date_default_timezone_set("Europe/Berlin");
|
|
$timestamp = time();
|
|
$tage = array("Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag");
|
|
$tag = date("w");
|
|
//echo $tage[$tag]
|
|
|
|
$monatsnamen = array(
|
|
1=>"Januar",
|
|
2=>"Februar",
|
|
3=>"März",
|
|
4=>"April",
|
|
5=>"Mai",
|
|
6=>"Juni",
|
|
7=>"Juli",
|
|
8=>"August",
|
|
9=>"September",
|
|
10=>"Oktober",
|
|
11=>"November",
|
|
12=>"Dezember");
|
|
$monat = date("n");
|
|
$jahr = date("Y");
|
|
//echo $monatsnamen[$monat];
|
|
|
|
|
|
// ****************Zahlenreihen und Buchstaben in arrays schreiben **********
|
|
// $zahlenreihe = range( 0, 100, 25 ); // = array( 0, 25, 50, 100 )
|
|
// $alphabet = range( 'A', 'Z' );
|
|
// $alphabet = range( chr( 65 ), chr( 90 ) );
|
|
// $alphabet = array( 'alle', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z' );
|
|
// Mit einer foreach lassen sich die Buchstaben anschließend ausgeben:
|
|
// foreach ($alphabet as $buchstabe){ echo $buchstabe;}
|
|
|
|
// ∞ alt + Komma
|
|
// † alt + T
|
|
|
|
?>
|