De-Pluralize a String
PHP Code
+ 0 likes
Please Register to submit score.
| Average Score | 0.0 (of 0 scores) |
| Date Added | Jan 21, 2009 |
| Last Updated | Jan 21, 2009 |
| Tags | plural remove string |
Introduction
PHP Snippet:
De-Pluralize a String
Posted on Jan 24, 2009 5:15 pm
Posted on Jan 24, 2009 5:15 pm
what if the word is something like "is"
PHP Snippet:
De-Pluralize a String
Posted on Jan 24, 2009 9:22 pm
Posted on Jan 24, 2009 9:22 pm
This basically assumes the given string is already plural. I use it to convert category names, such as "Computers" => "Computer". To determine if a word is plural or not would require some much more advanced coding.
PHP Snippet:
De-Pluralize a String
Posted on Jan 26, 2009 12:03 am
Posted on Jan 26, 2009 12:03 am
i understand =D the work would outweigh the use XD
PHP Snippet:
De-Pluralize a String
Posted on Jul 17, 2009 5:41 pm
Posted on Jul 17, 2009 5:41 pm
What about 'es' plural words? :P
PHP Snippet:
De-Pluralize a String
Posted on Jul 17, 2009 7:41 pm
Posted on Jul 17, 2009 7:41 pm
I think we've already determined this is quite a flawed script >.<










