\ MonkeyString

Summary

Methods
Properties
Constants
__construct()
Create()
FromChar()
Get()
Set()
Join()
Length()
Replace()
Split()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$_string
N/A

Properties

$_string

$_string : 

Type

Methods

__construct()

__construct(string  $string) : void

MonkeyString constructor

Parameters

string $string

Create()

Create(string  $string) : \MonkeyString

Create new instance of string

Parameters

string $string

Returns

\MonkeyString

FromChar()

FromChar(integer  $charCode) : string

Get character from ASCII character code

Parameters

integer $charCode

Returns

string

Get()

Get(integer  $start, integer  $length = -1) : string

Get substring of string

Parameters

integer $start
integer $length

Returns

string

Set()

Set(string  $string) : void

Set string to input string

Parameters

string $string

Join()

Join(string  $pieces) : void

Join pieces to string

Parameters

string $pieces

Length()

Length() : integer

Length of string

Returns

integer

Replace()

Replace(string  $findString, string  $replaceString) 

Replace given string with replacement string in this string

Parameters

string $findString
string $replaceString

Split()

Split(string  $separator) : array<mixed,string>

Return string split by split delimiter

Parameters

string $separator

Returns

array<mixed,string>