Re: Found a PHP bug!!!!!!!!!
| From: | Ray Hunter | Date: | Mon, 27 Jan 2003 20:45:06 +0000 |
| Subject: | Re: Found a PHP bug!!!!!!!!! | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-133292@lists.php.net to get a copy of this message | ||
U might want to do a type cast to integer from string...
http://www.php.net/manual/en/language.types.type-juggling.php
On Mon, 2003-01-27 at 13:47, Scott Fletcher wrote:
> I would need to use intval() to solve this problem....
>
> "Scott Fletcher" <scott@abcoa.com> wrote in message
> news:20030127203003.23873.qmail@pb1.pair.com...
> > I'm referring to '08' and '09' that don't work....
> >
> > "Chris Shiflett" <shiflett@php.net> wrote in message
> > news:20030127202202.46876.qmail@web14306.mail.yahoo.com...
> > > --- Scott Fletcher <scott@abcoa.com> wrote:
> > > > Found a PHP bug
> > > ...
> > > > if ($month == 01)
> > >
> > > I guess you mean:
> > >
> > > if ($month == '01')
> > >
> > > If so, this is not a bug. Otherwise, please explain what
> > > you think is wrong.
> > >
> > > Chris
> >
> >