Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class UniqueId {
- private $id;
- public function __construct($prefix = '')
- {
- $this->id = uniqid($prefix, true);
- }
- public function __toString()
- {
- return $this->id;
- }
- }
- // Usage:
- $profile->unique_id = (string) new UniqueId();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement