Skip to content

Instantly share code, notes, and snippets.

@codebird
codebird / singularize.php
Last active March 1, 2016 09:48 — forked from peter-mcconnell/singularize.php
PHP singularize
<?php
/**
* Singularize a string.
* Converts a word to english singular form.
*
* Usage example:
* {singularize "people"} # person
*/
function singularize ($params)
{