(PHP 4 >= 4.0.7, PHP 5, PECL odbtp >= 1.1.1)
mssql_guid_string — Converts a 16 byte binary GUID to a string
Converts a 16 byte binary GUID to a string.
A 16 byte binary GUID.
Whenever to use short format.
Returns the converted string on success.
Example #1 mssql_guid_string() example 以上例程会输出:
<?php
$binary = '19555081977808608437941339997619274330352755554827939936';
var_dump(mssql_guid_string($binary));
var_dump(mssql_guid_string($binary, true));
?>
string(36) "35353931-3035-3138-3937-373830383630"
string(32) "31393535353038313937373830383630"