392981414524f56f68d9f4a47e7072f2
39298141-4524-f56f-68d9-f4a47e7072f2
$uuid_str = "392981414524f56f68d9f4a47e7072f2";
echo join('-', sscanf($uuid_str, '%8s%4s%4s%4s%12s'));
$uuid_str = "392981414524f56f68d9f4a47e7072f2";
$uuid_dashed =
substr($uuid_str , 0, 8) . '-' .
substr($uuid_str , 8, 4) . '-' .
substr($uuid_str , 12, 4) . '-' .
substr($uuid_str , 16, 4) . '-' .
substr($uuid_str, 20)
;
var_dump($uuid_dashed);