Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel add (s) at the end of text based on how many data

echo IlluminateSupportStr::plural('list', 1); // list
echo IlluminateSupportStr::plural('list', 2); // lists
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #add #text #based #data
ADD COMMENT
Topic
Name
4+7 =