boolean provides (string $feature)
boolean provides
Checks if a feature is available for the chosen database type.
the feature to check
Table 33-1. Possible values are:
boolean - TRUE if the feature is supported
This function can not be called statically.
The provided information are only hints. Check the documentation of your database system for the real supported features. I.e. MySQL supports transactions, but not for every table type.
Example 33-1. Using provides()
<?php // Once you have a valid DB object named $db... if ($db->provides('pconnect')) { echo "Persistent connections are allowed.\n"; } ?>