GoLang mssql_guid_string

request it (399)
GoLang replacement for PHP's mssql_guid_string [edit | history]



Do you know a GoLang replacement for PHP's mssql_guid_string? Write it!

PHP mssql_guid_string

PHP original manual for mssql_guid_string [ show | php.net ]

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

Warning

This function was REMOVED in PHP 7.0.0.

Description

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

Converts a 16 byte binary GUID to a string.

Parameters

binary

A 16 byte binary GUID.

short_format

Whenever to use short format.

Return Values

Returns the converted string on success.

Examples

Example #1 mssql_guid_string() example

<?php
$binary 
'19555081977808608437941339997619274330352755554827939936';

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

The above example will output:

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