Skip to content

Latest commit

 

History

History
29 lines (16 loc) · 480 Bytes

File metadata and controls

29 lines (16 loc) · 480 Bytes

Utils - Strings


Usage

$result = \WebServCo\Framework\Helpers\StringHelper::method($arguments);

Static methods

getContextAsString($context)

Get string representation of variable (usually an array or an object).

linkify($string)

Convert URL's into links (adds the <a> tag)

Adapted from https://stackoverflow.com/a/507459

startsWith($haystack, $needle, $ignoreCase = true)

Check if a string starts with another string.