Zend - The PHP Company




Code Gallery: charles_killian


creating unique ids (strings)  

Type: code fragment
Added by: charles_killian
Entered: 04/10/2000
Last modified: 01/12/2000
Rating: ***** (4 votes)
Views: 9085
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).


microtime timer class  

Type: class
Added by: charles_killian
Entered: 28/06/2000
Last modified: 08/12/1999
Rating: ***** (6 votes)
Views: 7572
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.




Search