Skip to content

Working with Pimf_Util_Uuid

g.krsteski edited this page Jun 3, 2014 · 5 revisions

Uuid

A class that generates RFC 4122 UUIDs. This specification defines a Uniform Resource Name namespace for UUIDs (Universally Unique IDentifier), also known as GUIDs (Globally Unique IDentifier). A UUID is 128 bits long, and requires no central registration process.

Generating a UUID

 $uuid = Pimf\Util\Uuid::generate();

Yes, it is not the same UUID as generated before :-)

 Pimf\Util\Uuid::generate() !== Pimf\Util\Uuid::generate()