Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Strings in laravel 4.x

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 255
    Comment on it

    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)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: