Re: I know this is not easy and I'm not stupid but...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 kind of delimiter:
echo "'", ($userValues['afterDark']), "'";

Or, use var_dump or print_r to have PHP do this for you.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux