Str::substr

Posted on November 25, 2016

Returns the portion of string specified by the start and length parameters.

Example usage

$value = Str::substr('Пример текста', 0, 6);
// Пример

Parameters

string $string

int $start

int|null $length

Return Value

string

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *