---
title: "sqlsrv_client_info | Microsoft Docs"
ms.custom: ""
ms.date: "01/19/2017"
ms.prod: sql
ms.prod_service: connectivity
ms.reviewer: ""
ms.technology: connectivity
ms.topic: conceptual
apiname:
- "sqlsrv_client_info"
apitype: "NA"
helpviewer_keywords:
- "API Reference, sqlsrv_client_info"
- "sqlsrv_client_info"
ms.assetid: 3e2d3679-436a-45d8-8bdc-7c633b65a720
author: David-Engel
ms.author: v-daenge
---
# sqlsrv_client_info
[!INCLUDE[Driver_PHP_Download](../../includes/driver_php_download.md)]
Returns information about the connection and client stack.
## Syntax
```
sqlsrv_client_info( resource $conn)
```
#### Parameters
*$conn*: The connection resource by which the client is connected.
## Return Value
An associative array with keys described in the table below, or **false** if the connection resource is null.
**For PHP for SQL Server versions 3.2 and 3.1**:
|Key|Description|
|-------|---------------|
|DriverDllName|MSODBCSQL11.DLL (ODBC Driver 11 for SQL Server)|
|DriverODBCVer|ODBC version (xx.yy)|
|DriverVer|ODBC Driver 11 for SQL Server DLL version:
xx.yy.zzzz ([!INCLUDE[ssDriverPHP](../../includes/ssdriverphp_md.md)] version 3.2 or 3.1)|
|ExtensionVer|php_sqlsrv.dll version:
3.2.xxxx.x (for [!INCLUDE[ssDriverPHP](../../includes/ssdriverphp_md.md)] version 3.2)
3.1.xxxx.x (for [!INCLUDE[ssDriverPHP](../../includes/ssdriverphp_md.md)] version 3.1)|
**For PHP for SQL Server versions 3.0 and 2.0**:
|Key|Description|
|-------|---------------|
|DriverDllName|SQLNCLI10.DLL ([!INCLUDE[ssDriverPHP](../../includes/ssdriverphp_md.md)] version 2.0)|
|DriverODBCVer|ODBC version (xx.yy)|
|DriverVer|SQL Server Native Client DLL version:
10.50.xxx ([!INCLUDE[ssDriverPHP](../../includes/ssdriverphp_md.md)] version 2.0)|
|ExtensionVer|php_sqlsrv.dll version:
2.0.xxxx.x ([!INCLUDE[ssDriverPHP](../../includes/ssdriverphp_md.md)] version 2.0)|
## Example
The following example writes client information to the console when the example is run from the command line. The example assumes that SQL Server is installed on the local computer. All output is written to the console when the example is run from the command line.
```
$value)
{
echo $key.": ".$value."\n";
}
}
else
{
echo "Client info error.\n";
}
/* Close connection resources. */
sqlsrv_close( $conn);
?>
```
## See Also
[SQLSRV Driver API Reference](../../connect/php/sqlsrv-driver-api-reference.md)
[About Code Examples in the Documentation](../../connect/php/about-code-examples-in-the-documentation.md)