There are n number of functions of strings in laravel 4.x which is used to perform action in string that are
camel_case:
camel_case is a function which is used to convert the given string to camelCase.
Example:
$camel = camel_case('foo_bar');
Result: fooBar
class_basename
class_basename is a function which is used to get the class name of the given class even we have not specify any namespace names
Example:
$class = class_basename('Foo\Bar\Baz');
Result: Baz
str_limit:
str_limit is a function which is used to get the Limit the number of characters in a string.
Example:
str_limit($value, $limit = 100, $end = '...')
0 Comment(s)