Below are two functions I use to create unique ids: The first uses unique_id() and md5(). (I think I copied it from the manual). The second is useful if you want to restrict the
unique id to a specific length and character set ( I think I copied it from Core PHP).
Time your PHP scripts. I took the "dealing with microtime" function and created a class. Now it is easy to start, stop and print out the elapsed time. Great for timing PHP
scripts.