Re: formatting time
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: formatting time

From: Rik <luiheidsgoeroe@hotmail.com>
Date: Mon May 01 2006 - 04:14:31 CEST

Mark wrote:
> eh..well. thanks, but no. i love the idea of it just being "smart".
> google knows what i'm talking about.
> strtotime works alright, doesnt recognize everything i want it to, but
> oh well. it has a nice second parameter, so i can make it relative to
> the start time :)
>
> it really shouldnt be too hard to break it up into integer and letter
> components though.. maybe i'll have fun with regex or whatever later

To just "catch" the integers, you could
preg_match("/[0-9]+/",$input,$matches);

Grtz,

-- 
Rik Wasmus
Received on Mon May 1 03:08:18 2006