Showing 7 of 1,216 result(s)
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...
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...
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...
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...
The lower helper method takes a given value and returns a lower cased variant. The signature for the lower helper function is: lower($value)
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...
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...
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.