Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- switch (strtolower($record["name"][0])) {
- case 'a':
- case 'e':
- case 'i':
- case 'o':
- case 'u':
- $isVowel = "an ";
- break;
- default:
- $isVowel = "a ";
- }
- echo "You are a" . $isVowel . $record["name"] . " in the " . $record["projectName"] . " project.<br />";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement