diff --git a/samples/tutorials/php/2.0 PHP Server programming - Stored procedures, Transactions, and UDFs/test.php b/samples/tutorials/php/2.0 PHP Server programming - Stored procedures, Transactions, and UDFs/test.php index 68548f89..f9175ff5 100644 --- a/samples/tutorials/php/2.0 PHP Server programming - Stored procedures, Transactions, and UDFs/test.php +++ b/samples/tutorials/php/2.0 PHP Server programming - Stored procedures, Transactions, and UDFs/test.php @@ -145,10 +145,14 @@ while ($row = sqlsrv_fetch_array($getProducts, SQLSRV_FETCH_ASSOC)) { break; } $ctr++; - echo $row['SalesOrderID'] . str_repeat(' ', 13) . $row['CustomerID'] . str_repeat( - ' ', - 11 - ) . $row['TotalItems']; + echo sprintf( + '%s%s%s%s%s', + $row['SalesOrderID'], + str_repeat(' ', 13), + $row['CustomerID'], + str_repeat(' ', 11), + $row['TotalItems'] + ); echo('
'); $productCount++; }