Zend - The PHP Company




Code Gallery: mgkimsal


Dealing with microtime  

Type: code fragment
Added by: mgkimsal
Entered: 12/05/2000
Last modified: 08/12/1999
Rating: **** (8 votes)
Views: 7173
This is a quick function I wrote to parse out the 'microtime()' feature, and deal with the results mathmatically. Since microtime() returns the milliseconds, then a space, then the unix timestamp, using the results from microtime() itself weren't conducive to quick math. We had some pages here that we needed to time down to the millisecond, so we used this. :)


US State array  

Type: code fragment
Added by: mgkimsal
Entered: 26/07/2000
Last modified: 08/12/1999
Rating: ***** (3 votes)
Views: 11029
Many of you may have something like this already, but I would rather be able to find this here than root around my drive in a month. :) You may need to add Puerto Rico, Micronesia, etc for your needs, but the basic 50 plus DC were enough for me most of the time.




Search