Methods summary
public static
string
|
#
getType( mixed $var )
Returns type of variable, as in native gettype, or name of class if $var is
of 'object' or 'resource' type
Returns type of variable, as in native gettype, or name of class if $var is
of 'object' or 'resource' type
Parameters
Returns
string Type of variable
|
public static
boolean
|
#
WarningsAsErrors( boolean $wae = null )
Controls whether certain warnings are thrown as exceptions (default) If set
to false, warnings are ignored
Controls whether certain warnings are thrown as exceptions (default) If set
to false, warnings are ignored
Parameters
- $wae
boolean $wae True/false to turn on/off, null to get current value
Returns
boolean If null is given
|
public static
boolean
|
#
isJsonArray( string $json )
Checks if json string is a json array (only checks if a string starts with a
'[')
Checks if json string is a json array (only checks if a string starts with a
'[')
Parameters
- $json
string $json A valid json string
Returns
boolean
|
public static
array
|
#
toStringArray( array $list )
Calls __toString on every member of given object array
Calls __toString on every member of given object array
Parameters
- $list
array $list Array of objects
Returns
array Array of string values
|