update : 2015.11.03
php.shukuma.com

검색:
 
 
Converts a 16 byte binary GUID to a string

mssql_guid_string

(PHP 4 >= 4.0.7, PHP 5, PECL odbtp >= 1.1.1)

mssql_guid_stringConverts a 16 byte binary GUID to a string

설명

string mssql_guid_string ( string $binary [, bool $short_format = false ] )

Converts a 16 byte binary GUID to a string.

인수

binary

A 16 byte binary GUID.

short_format

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($binarytrue));
?>

위 예제의 출력:

string(36) "35353931-3035-3138-3937-373830383630"
string(32) "31393535353038313937373830383630"