Skip to content

Commit d562f24

Browse files
committed
minor #17032 [Uid] Added toHex method to AbstractUid class (mdoutreluingne)
This PR was merged into the 6.2 branch. Discussion ---------- [Uid] Added toHex method to AbstractUid class Fixes #17015 Commits ------- 8c0fdcb Added toHex method to AbstractUid class
2 parents 0b643c1 + 8c0fdcb commit d562f24

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/uid.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ Use these methods to transform the UUID object into different bases::
8484
$uuid->toBase32(); // string(26) "6SWYGR8QAV27NACAHMK5RG0RPG"
8585
$uuid->toBase58(); // string(22) "TuetYWNHhmuSQ3xPoVLv9M"
8686
$uuid->toRfc4122(); // string(36) "d9e7a184-5d5b-11ea-a62a-3499710062d0"
87+
$uuid->toHex(); // string(34) "0xd9e7a1845d5b11eaa62a3499710062d0"
8788

8889
Working with UUIDs
8990
~~~~~~~~~~~~~~~~~~
@@ -258,6 +259,7 @@ Use these methods to transform the ULID object into different bases::
258259
$ulid->toBase32(); // string(26) "01E439TP9XJZ9RPFH3T1PYBCR8"
259260
$ulid->toBase58(); // string(22) "1BKocMc5BnrVcuq2ti4Eqm"
260261
$ulid->toRfc4122(); // string(36) "0171069d-593d-97d3-8b3e-23d06de5b308"
262+
$ulid->toHex(); // string(34) "0x0171069d593d97d38b3e23d06de5b308"
261263

262264
Working with ULIDs
263265
~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)