051.php

<?php
echo "<p>".basename($_SERVER['SCRIPT_FILENAME'])."</p>";
// Array definieren
$weekday = array("Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag");
// alle Werte in einem foreach-loop aus
foreach($weekday AS $dayname) {
    echo $dayname."<br>";
} 
?> 
Nach oben scrollen