downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

mssql_init> <mssql_get_last_message
[edit] Last updated: Fri, 30 Nov 2012

view this page in

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

Opis

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

Converts a 16 byte binary GUID to a string.

Parametry

binary

A 16 byte binary GUID.

short_format

Whenever to use short format.

Zwracane wartości

Returns the converted string on success.

Przykłady

Przykład #1 mssql_guid_string() example

<?php
$binary 
'19555081977808608437941339997619274330352755554827939936';

var_dump(mssql_guid_string($binary));
var_dump(mssql_guid_string($binarytrue));
?>

Powyższy przykład wyświetli:

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



mssql_init> <mssql_get_last_message
[edit] Last updated: Fri, 30 Nov 2012
 
add a note add a note User Contributed Notes mssql_guid_string - [6 notes]