Skip to content

Commit

Permalink
getVersion() example
Browse files Browse the repository at this point in the history
  • Loading branch information
oittaa authored Dec 18, 2021
1 parent e3e6f37 commit d5ce881
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,8 @@ $uuid6_time = UUID::getTime(UUID::uuid6());
var_dump($uuid6_time); // e.g. string(18) "1639860190.2801270"
$uuid7_time = UUID::getTime(UUID::uuid7());
var_dump($uuid7_time); // e.g. string(18) "1639860190.2801320"

// Extract the UUID version.
$uuid_version = UUID::getVersion('2140a926-4a47-465c-b622-4571ad9bb378');
var_dump($uuid_version); // int(4)
```

0 comments on commit d5ce881

Please sign in to comment.