[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

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 ? $now = date(Hi, strtotime(now)); $out = not set; if (ereg([2200-2230], $now)) $out = special; elseif (ereg([0600-1159],

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([2200-2230], $now))