Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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, 'Behram');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement