mkoppanen/php-pdo_cassandra — Issue #3: UUID Types
Author: Unixas
Created: 2011-10-12 11:07:57+00:00
State: open

Hi,

It would be nice if UUID types came back already converted to string, so we don't need to convert it in PHP.

As for now I do it like this...
preg_replace("/([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})/", "$1-$2-$3-$4-$5", unpack('H*', $UUID))

Regards,
Aurimas