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 | |
| // Giving the variable Test a value of Hello World | |
| $test = "Hello World"; | |
| // Begin If-Else conditional // | |
| // If the Test variable exists and it has a value of Hello World... | |
| if (isset($test) && $test == "Hello World") { | |
| ob_start(); ?> |
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 | |
| // Sets the localtion to Spanish | |
| setlocale(LC_ALL, 'Spanish'); | |
| $year = date("Y"); // Sets the current year | |
| $day = date("j"); // Sets the curent day | |
| // Returns the Spanish month - along with the day and year | |
| echo strftime("%B")." ".$day.", ".$year; ?> |