|
get_defined_vars
Creates an array of all variables.
Format:
$array_vars = get_defined_vars();
isset
Checks whether variable is set. (See Chapter 7.)
Format:
$bool = isset($varname);
print_r
Outputs contents of a variable. (See Chapter 4.)
Format:
print_r($varname);
putenv
Sets an environmental variable as specified by
setting
.
setting
is usually
name=value
.
Format:
putenv(“setting”);
serialize
Converts data into a string containing binary data. Used to store data in a file
or database. The specified variable can be any type, including an object or a
function.
Format:
$string_ser = serialize($variable);
unserialize
Converts serialized data back to its original form.
Format:
$variable = unserialize($string_ser);
unset
Removes a variable. (See Chapter 4.)
Format:
unset($varname);
var_dump
Outputs contents of a variable. (See Chapter 4.)
Format:
var_dump($varname);
376
Part VI:Appendixes
|