Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php laravel string substring

use IlluminateSupportStr;

$padded = Str::of('James')->padRight(10, '-');

// 'James-----'

$padded = Str::of('James')->padRight(10);

// 'James     '
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #php #laravel #string #substring
ADD COMMENT
Topic
Name
9+2 =