sqlsrv_get_configsqlsrv_get_config

下载下载 PHP 驱动程序DownloadDownload PHP Driver

返回指定配置设置的当前值。Returns the current value of the specified configuration setting.

语法Syntax

  
sqlsrv_get_config( string $setting )  

参数Parameters

$setting:为其返回该值的配置设置。$setting: The configuration setting for which the value is returned. 有关可配置设置的列表,请参阅 sqlsrv_configureFor a list of configurable settings, see sqlsrv_configure.

返回值Return Value

$setting 参数指定的设置的值。The value of the setting specified by the $setting parameter. 如果指定的设置无效,将返回 false ,并向错误集合中添加一个错误。If an invalid setting is specified, false is returned and an error is added to the error collection.

注解Remarks

如果 false config sqlsrv_get_config,必须调用 sqlsrv_errors 来确定是否发生错误,或 false 是否是 $setting 参数指定的设置的值。If false is returned by sqlsrv_get_config, you must call sqlsrv_errors to determine if an error occurred or if false is the value of the setting specified by the $setting parameter.

另请参阅See Also

SQLSRV 驱动程序 API 参考SQLSRV Driver API Reference

sqlsrv_configuresqlsrv_configure

sqlsrv_errorssqlsrv_errors