RE: [PHP] Re: elseifs and ereg

2002-10-04 Thread John W. Holmes
> Err, yeah, I just figured that out. So now I have this, but it always > matches the first. I even tried setting $now = "2221" > > Thanks for the help! > > Bryan > > > $now = date("Hi", strtotime("now")); > $out = "not set"; Hey...you've got that right now...kind of. > if (ereg("[22

Re: [PHP] Re: elseifs and ereg

2002-10-04 Thread Bryan Koschmann - GKT
Err, yeah, I just figured that out. So now I have this, but it always matches the first. I even tried setting $now = "2221" Thanks for the help! Bryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: elseifs and ereg

2002-10-04 Thread Nick Eby
check the manual page for ereg... you'll find that it takes 2 parameters minimum, and the return value is not what your code expects it to be. http://www.php.net/ereg "Bryan Koschmann - Gkt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Okay, I think I'm just