Re: I know this is not easy and I'm not stupid but...
| From: | Richard Lynch | Date: | Sat, 11 Aug 2007 02:24:16 +0000 |
| Subject: | Re: I know this is not easy and I'm not stupid but... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-260672@lists.php.net to get a copy of this message | ||
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?