\Songshenzong\SupportStrings

Class Strings

Summary

Methods
Properties
Constants
toArray()
isJson()
isXml()
xmlToArray()
unserialize()
toObject()
xmlToObject()
isSerialized()
filter()
trim()
isSetAndNotEmpty()
isSetAndNotEmptyAndNotNull()
uri()
host()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

toArray()

toArray(string  $string = '') : array

Parameters

string $string

Returns

array —

isJson()

isJson(string  $string = '') : bool

Parameters

string $string

Returns

bool —

isXml()

isXml(string  $string = '') : bool

Parameters

string $string

Returns

bool —

xmlToArray()

xmlToArray(string  $string) : array

Parameters

string $string

Returns

array —

unserialize()

unserialize(string  $serialized) : mixed

Parameters

string $serialized

Returns

mixed —

toObject()

toObject(string  $string = '') : \stdClass|\SimpleXMLElement

Parameters

string $string

Returns

\stdClass|\SimpleXMLElement —

xmlToObject()

xmlToObject(string  $string) : \SimpleXMLElement

Parameters

string $string

Returns

\SimpleXMLElement —

isSerialized()

isSerialized(string  $string) : bool

Parameters

string $string

Returns

bool —

filter()

filter(string  $string) : string

Parameters

string $string

Returns

string —

trim()

trim(string  $string) : string

Parameters

string $string

Returns

string —

isSetAndNotEmpty()

isSetAndNotEmpty( $value) : bool

Is Set and Not Empty.

Parameters

$value

Returns

bool —

isSetAndNotEmptyAndNotNull()

isSetAndNotEmptyAndNotNull( $value) : bool

Is Set and Not Empty and Not Null.

Parameters

$value

Returns

bool —

uri()

uri(string  $uri, array  $parameters = [], bool  $appendsCurrentUri = false) : string

Parameters

string $uri
array $parameters
bool $appendsCurrentUri

Returns

string —

host()

host( $host) : bool

Parameters

$host

Returns

bool —