Created
August 29, 2013 17:50
-
-
Save aqlx86/6381200 to your computer and use it in GitHub Desktop.
days option
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 | |
$timestamp = strtotime('next Sunday'); | |
?> | |
<?php for ($i = 0; $i < 7; $i++) : ?> | |
<?php $timestamp = strtotime('+1 day', $timestamp); ?> | |
<option value="<?php echo strftime('%A', $timestamp); ?>"><?php echo strftime('%A', $timestamp); ?></option> | |
<?php endfor; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment