(No version information available, might only be in Git)
Session::generateUUID — 獲取新的UUID
說明
public mysql_xdevapi\Session::generateUUID(): string
生成一個根據(jù)RFC 4122生成的通用唯一標(biāo)識符(UUID)。
參數(shù)
此函數(shù)沒有參數(shù)。
返回值
The UUID; a string with a length of 32.
示例
示例 #1 mysql_xdevapi\Session::generateUuid() example
<?php
$session = mysql_xdevapi\getSession("mysqlx://user:password@localhost");
$uuid = $session->generateUuid();
var_dump($uuid);
以上示例的輸出類似于:string(32) "484B18AC7980F8D4FE84613CDA5EE84B"