Click for more info

Search PHP Scripts & Tutorials



Featured PHP Scripts & Tutorials



Recently Written

Your Ad Here
1
prime

Automatically pluralize any english word the right way

June 24, 2008 | 0 comments | 1 Page

If you need a function to automatically pluralize a word for you in a proper english manor you can use this function. All you do is pass the word you want to turn plural through the function and the plural version will be returned.

If no match is found for a plural alternative of the word passed in to the function, the word passed in will be returned.

Pluralization examples:

$non_plural = pluralize("Word");

Virus = Virii

Person = People

Code Monkey = Code Monkeys

Deer = Deer

Aaron = Aarons

· Keywords: pluralize, plural, english, words, function


No comments made

POST A COMMENT

Name
E-Mail
E-Mail will be shown as an image which is un-spammable.
Subject
Message
Verification
Enter the characters from the image into the box
 
*All comments need to be authorized before they are made live.
 
Powered by: StoneRaft.com