$params = array($docCode);
$tsql = "SELECT [ID]
,[Surname]
,[Name]
,[SecondName]
,[DocumentCode]
FROM [baza].[dbo].[rbd_clients]
WHERE DocumentNumber=?";
$getClients = sqlsrv_query($conn, $tsql, $params);
while ($row = sqlsrv_fetch_array($getClients , SQLSRV_FETCH_ASSOC)) {
echo '<pre>';
print_r($row);
echo '</pre>';
}