Helper
abstract class Helper implements HelperInterface
Helper is the base class for all helper classes.
Properties
Methods
Details
setHelperSet(HelperSet $helperSet = null)
Sets the helper set associated with this helper.
Parameters
Gets the helper set associated with this helper.
Return Value
static int
strlen(string $string)
Returns the length of a string, using mb_strwidth if it is available.
Parameters
string | $string | The string to check its length |
Return Value
int | The length of the string |
static string
substr(string $string, int $from, int|null $length = null)
Returns the subset of a string, using mb_substr if it is available.
Parameters
string | $string | String to subset |
int | $from | Start offset |
int|null | $length | Length to read |
Return Value
Parameters
Parameters
static
strlenWithoutDecoration(OutputFormatterInterface $formatter, $string)
Parameters
Parameters