Skip to content

Instantly share code, notes, and snippets.

@dannyverp
Last active March 12, 2020 23:54
Show Gist options
  • Save dannyverp/cbd100b7549350d249898b332104977c to your computer and use it in GitHub Desktop.
Save dannyverp/cbd100b7549350d249898b332104977c to your computer and use it in GitHub Desktop.
<?php
public function getWords(int number): string
{
switch (number) {
case 1:
return "one";
case 2:
return "a couple";
case 3:
return “a few”;
default:
return "lots";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment