|
|||||
|
Sometimes you need to create a unique id for something.. i'll show you one really easy way how to create a unique id:
PHP Code:
PHP Code:
__________________
|
| Sponsored Links |
|
|
|
|||||
|
uniqid syntax is:
Code:
uniqid(string prefix, [bool_more_entropy]) PHP Code:
Example: PHP Code:
Check Like you see there's prefix+id so there have to be codecall(idHere) Now those true and false statements If you use false statement then your id will be 13 characters long, but if you use true statements then this id will be 23 characters long
__________________
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Javascript: Prime or not | reachpradeep | Javascript | 4 | 08-23-2007 09:58 AM |
| text file manipulations in vb6.0 | Ronin_paes | Visual Basic Programming | 3 | 06-11-2007 05:54 AM |
| Storing a Secure Password | dirkfirst | PHP Forum | 7 | 07-22-2006 11:45 PM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |
Goal: 100,000 Posts
Complete: 97%