Search

Showing 7 of 1,216 result(s)

/blog/2016/11/16/laravel-string-helper-function-finish

The finish helper method will make sure that a given $value always ends with exactly one occurrence of the $cap . This helper method is incredibly useful when construction URIs or file paths. The $cap can be any string of characters, and does not...

/blog/2016/11/16/laravel-string-helper-function-is

The is helper method will indicate if the given $value matches the given $pattern . If the $value is the $pattern or if the $value matches the $pattern , the method will return true , otherwise it returns false . The signature for the is helper...

/blog/2016/11/16/laravel-string-helper-function-length

The length helper method simply returns the length of the given $value , using PHP's internal character encoding. The signature for the length helper method is: length($value) str_repeat($input, $multiplier) str_repeat is a function built into PHP...

/blog/2016/11/16/laravel-string-helper-function-limit

The limit method will make sure that the $value is never longer than the given limit. If it is, the length is reduced and the specified end is added as a suffix. This method is useful when displaying output from a user that could be very long and...

/blog/2016/11/16/laravel-string-helper-function-lower

The lower helper method takes a given value and returns a lower cased variant. The signature for the lower helper function is: lower($value)

/blog/2016/11/16/laravel-string-helper-function-quick_random

The quickRandom helper method is similar to random in that it generates a random string to a given $length . The quickRandom helper method does not rely on the OpenSSL extension, and generates its random strings from a pool of alpha-numeric...

/blog/2016/11/16/laravel-string-helper-function-random

The random helper method generates a random string of the specified $length . This method internally uses the OpenSSL function openssl_random_pseudo_bytes , and therefore requires the OpenSSL extension to be installed and configured . The...

Some absolutely amazing
people

The following amazing people help support this site and my open source projects ♥️
If you're interesting in supporting my work and want to show up on this list, check out my GitHub Sponsors Profile.