The attached class is a date utility that I created a long time ago.
It parses out SQL dates, does differences, and specific to your needs,
you can use dateAdjust() to move a unix timestamp by a number of
seconds, minutes, hours, days, months, quarters, years or centuries.
You should be able t
Ereg() would be an excellent choice.
To move a step further, although it is a little more complex to become
familiar with, the perl regular expressions are considerably faster and
more efficient for anything with an expression, and str_replace() is
faster yet, if replacing a simple string.
Thus
While( ) {
...
$color = ($color == "FF")? "EAEAEA" : "FF";
print "\n";
...
}
-Original Message-
From: Christopher J. Crane [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 04, 2002 3:56 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Returning Rows Question
If you are looking for milliseconds on the current time, see the
examples on microtime():
http://www.php.net/manual/en/function.microtime.php
Here is a summary of how to get milliseconds:
list($usec, $sec) = explode(" ",microtime());
$milliseconds = (((float)$usec/1000) + (float)$sec);
I have
I've been searching for this old php feature (perhaps it was
deprecated), and can't get the right keywords to look it up.
There was a way, similar to the perl method shown below, to set multiple
lines of data equal to a variable.
(in perl)
$variable = __SOME_HEADER_HERE__
Put whatever is desir
5 matches
Mail list logo