WireTextTools::ltrim() WireTextTools::ltrim(string $str) WireTextTools::ltrim(string $str, string $chars = '') | string | Strip whitespace (or other characters) from the beginning of string only (aka left trim) | |
WireTextTools::rtrim() WireTextTools::rtrim(string $str) WireTextTools::rtrim(string $str, string $chars = '') | string | Strip whitespace (or other characters) from the end of string only (aka right trim) | |
WireTextTools::stripos() WireTextTools::stripos(string $haystack, string $needle) WireTextTools::stripos(string $haystack, string $needle, int $offset = 0) | bool false int | Find the position of the first occurrence of a case-insensitive substring in a string | |
WireTextTools::stristr() WireTextTools::stristr(string $haystack, string $needle) WireTextTools::stristr(string $haystack, string $needle, bool $beforeNeedle = false) | false string | Find the first occurrence of a string (case insensitive) | |
WireTextTools::strlen() WireTextTools::strlen(string $str) WireTextTools::strlen(string $str) | int | Get string length | |
WireTextTools::strpos() WireTextTools::strpos(string $haystack, string $needle) WireTextTools::strpos(string $haystack, string $needle, int $offset = 0) | bool false int | Find position of first occurrence of string in a string | |
WireTextTools::strrchr() WireTextTools::strrchr(string $haystack, string $needle) WireTextTools::strrchr(string $haystack, string $needle) | false string | Find the last occurrence of a character in a string | |
WireTextTools::strripos() WireTextTools::strripos(string $haystack, string $needle) WireTextTools::strripos(string $haystack, string $needle, int $offset = 0) | bool false int | Find the position of the last occurrence of a case-insensitive substring in a string | |
WireTextTools::strrpos() WireTextTools::strrpos(string $haystack, string $needle) WireTextTools::strrpos(string $haystack, string $needle, int $offset = 0) | bool false int | Find the position of the last occurrence of a substring in a string | |
WireTextTools::strstr() WireTextTools::strstr(string $haystack, string $needle) WireTextTools::strstr(string $haystack, string $needle, bool $beforeNeedle = false) | false string | Find the first occurrence of a string | |
WireTextTools::strtolower() WireTextTools::strtolower(string $str) WireTextTools::strtolower(string $str) | string | Make a string lowercase | |
WireTextTools::strtoupper() WireTextTools::strtoupper(string $str) WireTextTools::strtoupper(string $str) | string | Make a string uppercase | |
WireTextTools::substr() WireTextTools::substr(string $str, int $start) WireTextTools::substr(string $str, int $start, $length = null) | string | Get part of a string | |
WireTextTools::substrCount() WireTextTools::substrCount(string $haystack, string $needle) WireTextTools::substrCount(string $haystack, string $needle) | int | Count the number of substring occurrences | |
WireTextTools::trim() WireTextTools::trim(string $str) WireTextTools::trim(string $str, string $chars = '') | string | Strip whitespace (or other characters) from the beginning and end of a string | |