StringUtil deprecated
class StringUtil
deprecated
Creates singulars from plurals.
Methods
static string|array | singularify(string $plural) deprecated Returns the singular form of a word. |
Details
static string|array singularify(string $plural) deprecated
deprecated
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.
Parameters
string | $plural | A word in plural form |
Return Value
string|array | The singular form or an array of possible singular forms |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/PropertyAccess/StringUtil.html