Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $storedIds = [
- 'abc',
- 'def',
- // ... more stored Ids
- ];
- do {
- $id = uniqid('image',true);
- } while (in_array($id, $storedIds));
- var_dump($id); // use id
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement