something stupid... split().
| From: | Chris Knipe | Date: | Thu, 17 Mar 2005 11:16:16 +0000 |
| Subject: | something stupid... split(). | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-210956@lists.php.net to get a copy of this message | ||
Lo all,
echo ConvertTime($AcctSessionTime/90); # Returns: 03:17:46.7666666667
I am trying to drop the .whatever.. Thus,
list($Duration, $none) = split('.', ConvertTime($AcctSessionTime/90), 2);
However, $Duration is empty, and $none has the whole string from ConvertTime.... As I said, something silly ;)
Thanks for the help.
--
Chris.