__String
in package
Tags
Table of Contents
- $_string : string
- __construct() : mixed
- __toString() : string
- binLength() : int
- contains() : bool
- endsWith() : bool
- getNew() : static
- isEmpty() : bool
- keep() : string
- length() : int
- remove() : string
- replace() : string
- split() : array<string|int, mixed>
- startsWith() : bool
- sub() : string
Properties
$_string
private
string
$_string
= null
Methods
__construct()
public
final __construct(string $string) : mixed
Parameters
- $string : string
Return values
mixed —__toString()
public
__toString() : string
Return values
string —binLength()
public
binLength() : int
Return values
int —contains()
public
contains(string $subString, int $offset) : bool
Parameters
- $subString : string
- $offset : int
Return values
bool —endsWith()
public
endsWith(string $subStr) : bool
Parameters
- $subStr : string
Return values
bool —getNew()
public
static getNew(string|null $string) : static
Parameters
- $string : string|null
Return values
static —isEmpty()
public
isEmpty() : bool
Return values
bool —keep()
public
keep(string $chars) : string
Parameters
- $chars : string
Return values
string —length()
public
length() : int
Return values
int —remove()
public
remove(array<string|int, mixed> $chars) : string
Parameters
- $chars : array<string|int, mixed>
Return values
string —replace()
public
replace(string $search, string $replace) : string
Parameters
- $search : string
- $replace : string
Return values
string —split()
public
split() : array<string|int, mixed>
Return values
array<string|int, mixed> —startsWith()
public
startsWith(string $subStr) : bool
Parameters
- $subStr : string
Return values
bool —sub()
public
sub(int $start[, int $length = null ]) : string
Parameters
- $start : int
- $length : int = null