/* Define the Transact-SQL query. Use question marks (?) in place of
the parameters to be passed to the stored procedure */
$tsql_callSP="{call SubtractVacationHours(?,?)}";
$employeeId=4;
$vacationHrs=8;
$params=array(
array($employeeId,SQLSRV_PARAM_IN),
array($vacationHrs,SQLSRV_PARAM_INOUT)
);
/* Execute the query. */
$stmt3=sqlsrv_query($conn,$tsql_callSP,$params);