public static function available_dbals() { $arrDbals = array('mysqli' => 'MySQLi', 'mysql_pdo' => 'MySQL PDO'); foreach ($arrDbals as $key => $name) { if (dbal::check_if_pdo($key)) { $blnCheckResult = dbal::check_pdo(dbal::check_if_pdo($key)); } else { $blnCheckResult = dbal::check_extension($key); } if (!$blnCheckResult) { unset($arrDbals[$key]); } } return $arrDbals; }