StringUtil deprecated

StringUtil deprecated

class StringUtil

deprecated

since version 3.1, to be removed in 4.0. Use {@see Symfony\Component\Inflector\Inflector} instead.

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

since version 3.1, to be removed in 4.0. Use {@see Symfony\Component\Inflector\Inflector::singularize} instead.

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/3.3/Symfony/Component/PropertyAccess/StringUtil.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部