tags:

views:

127

answers:

1

Hi guys,

how can I get 16 bytes binary form of the uuid from its string/canonical representation:

ex:1968ec4a-2a73-11df-9aca-00012e27a270

cheers, /Marcin

+3  A: 
 $bin = pack("h*", str_replace('-', '', $guid));

pack

stereofrog
thank you very much
Marcin