September 2001
Intermediate to advanced
768 pages
32h 45m
English
bool is_array(mixed value) Tests whether a value is an array.
Returns:
TRUE if the value is an array; FALSE otherwise
Description:
is_array() checks whether value is an array. If it is, TRUE is returned. If not, FALSE is returned.
Availability:
UNIX, Windows
Version:
3+, 4+
See also:
gettype()
Example:
function print_list ($list, $dest = 'php://stdout') {
// If the $list argument is not an array, then make it an array
is_array ($list)
or $list = array ($list);
// rest of function omitted for brevity
//....
}
|
Read now
Unlock full access