Documentation

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
since
1.0.0
access

public

generateRandomWord()

Generates a random word

public static generateRandomWord(mixed $length) : mixed
Parameters
$length : mixed
Tags
since
1.1
access

public

hasBlockedWords()

Determines if the content provided contains any blocked word

public static hasBlockedWords(mixed $blockedWords, mixed $content) : mixed
Parameters
$blockedWords : mixed
$content : mixed
Tags
since
1.1.4
access

public

isAscii()

Determines if a given string is in ascii format

public static isAscii(mixed $text) : mixed
Parameters
$text : mixed
Tags
since
1.1.3
access

public


        
On this page

Search results