StringUtil

class StringUtil

Methods

static string trim(string $string)

Returns the trimmed data.

static string|null fqcnToBlockPrefix(string $fqcn)

Converts a fully-qualified class name to a block prefix.

Details

static string trim(string $string)

Returns the trimmed data.

Parameters

string $string

Return Value

string

static string|null fqcnToBlockPrefix(string $fqcn)

Converts a fully-qualified class name to a block prefix.

Parameters

string $fqcn The fully-qualified class name

Return Value

string|null The block prefix or null if not a valid FQCN

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/Form/Util/StringUtil.html