PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Is it possible to make a plural (e.g: surfers) into a singular work (e.g: surfer)? And if the word is already singular, the script doesn't do anything.
you could do some sort of regex, but then you'd have to think of all the ways that a word can be plural. Some words end in ies, some in s, some in es, some don't even end in an s at all. That would be a pretty crazy regex. I'm kind of curious how this could be accomplished too.