This file contains hidden or 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 | |
| for ($date = strtotime("2021-09-08"); $date < strtotime("2021-10-08"); $date = strtotime("+1 day", $date)) { | |
| echo date("Y-m-d", $date)."<br />"; | |
| } | |
| echo "<br> Celeste Castillo Flores"; | |
| ?> |
This file contains hidden or 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 | |
| echo 'Hecho con do while <br/>'; | |
| $i = 1; | |
| do { | |
| echo $i . "<br/>"; | |
| $i++; | |
| } while($i < 10); | |
| echo "<br> Celeste Castillo Flores"; | |
| ?> |
This file contains hidden or 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 | |
| $variable=2; | |
| switch($variable) { | |
| case 1: | |
| echo '$variable es igual a 1.'; |
This file contains hidden or 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 | |
| $galletas = true; | |
| if($galletas == true) { | |
| echo 'Hay galletas'; | |
| } else { |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <body> | |
| <?php | |
| echo "Mi primera vez!"; | |
| print ("Mi primera vez!<br>"); | |
| $num1 = 7; | |
| $num2 = 20; | |
| $num3 = 3; |
NewerOlder