Class Format
Format validation statics
Namespace: Alo\Statics
Package: Statics
Author: Art <a.molcanovas@gmail.com>
Located at sys/class/alo/statics/format.php
Package: Statics
Author: Art <a.molcanovas@gmail.com>
Located at sys/class/alo/statics/format.php
Methods summary
public static
boolean
|
|
public static
boolean
|
|
public static
string
|
#
scalarOutput( mixed $input, integer $prettify_method =
Makes output scalar. If $input is already scalar, simply returns it; otherwise uses a function specified in $prettify_method to make the output scalar |
public static
integer|float|mixed
|
#
makeNumeric( mixed $var, boolean $boolMode = false )
Typecasts a variable to float or int if it's numeric |
Magic methods summary
Constants summary
integer |
M_SERIALIZE
|
0 |
#
Defines an method as "serialize" |
integer |
M_JSON
|
1 |
#
Defines a method as "json_encode" |
integer |
M_PRINT_R
|
2 |
#
Defines a method as "print_r" |