Übung 6 - PHP Online
Form of PHP Sandbox
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of Übung 6.php
- <?php
- function zahlenXMalAusgeben($anzahl)
- {
- for($i=0; $i<$anzahl;$i++)
- {
- echo $i."<br>";
- }
- }
- function zahlenAusgaben($anfangszahl, $endzahl)
- {
- for($i=$anfangszahl;$i<=$endzahl; $i++)
- {
- echo $i."<br>";
- }
- }
- zahlenAusgaben(5,10);
- ?>
- <?php
- function Tabelle($anfangszahl, $endzahl)
- {
- echo ("Jetzt kommen die Zahlen von ".$anfangszahl. "bis" . $endzahl);
- echo ("<table style='color: red' border='1' >");
- for ($i=1;$i<=10; $i++)
- {
- echo "<tr><td>".$i."</td></tr>";
- }
- echo ("</table>");
- }
- Tabelle(10,20);
- ?>
- <?php
- function nenneZahlenreihe($zahl)
- {
- for ($i=1;$i<=10; $i++)
- {
- echo ($i*$zahl)."<br>";
- }
- echo ("</table>");
- }
- nenneZahlenreihe(5);
- ?>
File Description
- Übung 6
- PHP Code
- 13 Dec-2019
- 795 Bytes
You can Share it:
Latest PHP Pastes