-1

I want convert this string to uuid4 by PHP functions

my string: 24:1D:87:0E:01:32:09:FB:36:97:23:BD:B5:E1:18:04

convert to : 241d870e-0132-49fb-b697-23bdb5e11804

how can do it?! php have function or?!...

1 Answers1

2

You could do a combination of:

Or, you could write a regex/preg_replace transformation.

mario
  • 144,265
  • 20
  • 237
  • 291