Fix wrong comment

This commit is contained in:
Dylan K. Taylor 2016-10-12 13:24:00 +01:00
parent 6b06e407c6
commit 2fba1073dd

View File

@ -92,7 +92,7 @@ class UUID{
public function toString(){
$hex = bin2hex(self::toBinary());
//xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx 8-4-4-12
//xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx 8-4-4-4-12
if($this->version !== null){
return substr($hex, 0, 8) . "-" . substr($hex, 8, 4) . "-" . hexdec($this->version) . substr($hex, 13, 3) . "-8" . substr($hex, 17, 3) . "-" . substr($hex, 20, 12);
}