Section 3 of RFC4122 provides the formal definition of UUID string representations. It's 36 characters - 32 hex digits + 4 dashes. So that the generated uuid's will always have these many numbers of characters. So what you can do is either take/extract the first/desired part of the uuid, by using methods like substring preg-split, etc...
Basic substring() usage (copied from php docs)
<?php
echo substr('abcdef', 1); // bcdef
echo substr('abcdef', 1, 3); // bcd
echo substr('abcdef', 0, 4); // abcd
echo substr('abcdef', 0, 8); // abcdef
echo substr('abcdef', -1, 1); // f
and make your primary key the newly generated one