Last active
January 5, 2018 03:24
-
-
Save radarin/9bfcb87011932e069af89be5f5a47208 to your computer and use it in GitHub Desktop.
Listen erzeugen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Zahlenbereich mittels Schleife erzeugen | |
for ( $x=2005; $x<2015; $x++ ) | |
{ | |
echo ">$x\n<br>"; | |
} | |
// Rollmenu aus definiertem Zahlenbereich | |
echo "<select>"; | |
for ( $x=2005; $x<2015; $x++ ) | |
{ | |
echo "\t echo ($x == $jahr)?" SELECTED":""; | |
echo ">$x\n"; | |
} | |
echo "</select>"; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment