Skip to content

Instantly share code, notes, and snippets.

@Mombuyish
Created April 14, 2018 09:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mombuyish/ac74a1a9dccf1e363abbbff39530b860 to your computer and use it in GitHub Desktop.
Save Mombuyish/ac74a1a9dccf1e363abbbff39530b860 to your computer and use it in GitHub Desktop.
<?php
str_plural('dog'); // dogs
str_plural('cat'); // cats
str_plural('dog', 2); // dogs
str_plural('cat', 1); // cat
str_plural('child'); // children
str_plural('person'); // people
str_plural('fish'); // fish
str_plural('deer', 2); // deer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment