type_cast_helper
class type_cast_helper implements type_cast_helper_interface
A helper class that provides convenience methods for type casting.
Methods
set_var(mixed $result, mixed $var, mixed $type, bool $multibyte = false, bool $trim = true)
Set variable $result to a particular type.
recursive_set_var(string $var, mixed $default, bool $multibyte, bool $trim = true)
Recursively sets a variable to a given type using set_var set_var
Details
at line 32
set_var(mixed $result, mixed $var, mixed $type, bool $multibyte = false, bool $trim = true)
Set variable $result to a particular type.
at line 86
recursive_set_var(string $var, mixed $default, bool $multibyte, bool $trim = true)
Recursively sets a variable to a given type using set_var set_var