or reporting including E_NOTICE, you don't
see that there's some problem with your code :P
If I execute your code with the -n option, I get same results.
When I put them in a PHP file like this:
I get :
bool(false)
bool(false)
and you probably also ;)
Tijnema
>
> >
> >
On Thu, August 9, 2007 1:24 am, Phil Curry wrote:
$userValues = ' 1';
> line 102 echo ($userValues['afterDark']); // outputs 1
>
> line 103 if ( $userValues['afterDark'] == 0 ) {// passes
When using echo to display debug output ALWAYS surround the data with
some ki
>
> Jan
>
>
>
> -----Original Message-----
> From: Jim Lucas [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 10, 2007 1:47 AM
> To: Jan Reiter
> Cc: [EMAIL PROTECTED]; php-general@lists.php.net
> Subject: Re: [PHP] I know this is not easy and I'm not stup
rDark'] equals "" or "blah" or "1"
Hope that helps!
Jan
-----Original Message-
From: Phil Curry [mailto:[EMAIL PROTECTED]
Sent: Friday, August 10, 2007 2:49 AM
To: Stut
Cc: php-general
Subject: Re: [PHP] I know this is not easy and I'm not stupid but...
Please include the list when replying.
Phil Curry wrote:
Phil Curry wrote:
how can this be? This is not the first time I've run into a
situation like this. What am I missing?
line 102echo ($userValues['afterDark']); //
outputs 1
line 103if ( $userValues['afterDark'] ==
fail!;-) So you have to use === to
keep the types of the values!
Jan
-Original Message-
From: Jim Lucas [mailto:[EMAIL PROTECTED]
Sent: Friday, August 10, 2007 1:47 AM
To: Jan Reiter
Cc: [EMAIL PROTECTED]; php-general@lists.php.net
Subject: Re: [PHP] I know this is not easy and I'm not stupid bu
essage-----
From: Jim Lucas [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 09, 2007 8:08 PM
To: Stut
Cc: Phil Curry; php-general
Subject: Re: [PHP] I know this is not easy and I'm not stupid but...
Stut wrote:
Please include the list when replying.
Phil Curry wrote:
Phil C
leak in this case! Must be something pretty
obvious! Anyone a clue??
Thanks,
Jan
-Original Message-
From: Jim Lucas [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 09, 2007 8:08 PM
To: Stut
Cc: Phil Curry; php-general
Subject: Re: [PHP] I know this is not easy and I'm not stupid b
Stut wrote:
Please include the list when replying.
Phil Curry wrote:
Phil Curry wrote:
how can this be? This is not the first time I've run into a
situation like this. What am I missing?
line 102echo ($userValues['afterDark']); // outputs 1
line 103if ( $userValues['after
Please include the list when replying.
Phil Curry wrote:
Phil Curry wrote:
how can this be? This is not the first time I've run into a situation
like this. What am I missing?
line 102echo ($userValues['afterDark']); // outputs 1
line 103if ( $userValues['afterDark'] == 0 )
Phil Curry wrote:
how can this be? This is not the first time I've run into a situation
like this. What am I missing?
line 102echo ($userValues['afterDark']); // outputs 1
line 103if ( $userValues['afterDark'] == 0 ) {// passes
Add a line at 102.5...
var_dump($u
11 matches
Mail list logo