mixed getOption (
string $option
)
Determines current state of a PEAR DB configuration option
$option
name of the option to examine
mixed the option's value
Error code | Error message | Reason | Solution |
---|---|---|---|
NULL | unknown option | The given option does not exist |
Check $option for typographical errors
|
This function can not be called statically.
Simple getOption() example
<?php
// Once you have a valid DB object named $db...
if ($db->getOption('autofree')) {
// do something...
}
?>