Skip to content

Commit d5ce881

Browse files
authored
getVersion() example
1 parent e3e6f37 commit d5ce881

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,8 @@ $uuid6_time = UUID::getTime(UUID::uuid6());
116116
var_dump($uuid6_time); // e.g. string(18) "1639860190.2801270"
117117
$uuid7_time = UUID::getTime(UUID::uuid7());
118118
var_dump($uuid7_time); // e.g. string(18) "1639860190.2801320"
119+
120+
// Extract the UUID version.
121+
$uuid_version = UUID::getVersion('2140a926-4a47-465c-b622-4571ad9bb378');
122+
var_dump($uuid_version); // int(4)
119123
```

0 commit comments

Comments
 (0)