Created
February 28, 2014 03:54
-
-
Save camfindlay/9264915 to your computer and use it in GitHub Desktop.
Happy Birthday SilverStripe!
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 | |
$string = ''; | |
for ($i = 0; $i < 4; $i++) { | |
$string .= "Happy birthday "; | |
if ($i != 2) { | |
$string .= "to you!\n"; | |
} else { | |
$string .= "dear %s!\n"; | |
} | |
} | |
print sprintf($string, 'SilverStripe'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment