class StringUtil
Creates singulars from plurals.
static string|array | singularify(string $plural) Returns the singular form of a word. |
Returns the singular form of a word.
If the method can't determine the form with certainty, an array of the possible singulars is returned.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Component/PropertyAccess/StringUtil.html