Str::plural

Posted on November 25, 2016

The Str::plural function converts a string to its plural form. This function currently only supports the English language.

Example usage

$plural = Str::plural('car');
// cars

$plural = Str::plural('child');
// children

$plural = str_plural('child', 1);
// child

Parameters

string $value

int $count

Return Value

string

0 Comments

Leave a Reply

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