StringHelper
in package
Table of Contents
Methods
- forceUTF8() : mixed
- Force a set of string to be UTF8
- generateRandomWord() : mixed
- Generates a random word
- hasBlockedWords() : mixed
- Determines if the content provided contains any blocked word
- isAscii() : mixed
- Determines if a given string is in ascii format
Methods
forceUTF8()
Force a set of string to be UTF8
public
static forceUTF8(mixed $text) : mixed
Parameters
- $text : mixed
Tags
generateRandomWord()
Generates a random word
public
static generateRandomWord(mixed $length) : mixed
Parameters
- $length : mixed
Tags
hasBlockedWords()
Determines if the content provided contains any blocked word
public
static hasBlockedWords(mixed $blockedWords, mixed $content) : mixed
Parameters
- $blockedWords : mixed
- $content : mixed
Tags
isAscii()
Determines if a given string is in ascii format
public
static isAscii(mixed $text) : mixed
Parameters
- $text : mixed