Re: Can't find my error

From: Date: Fri, 07 May 2010 14:16:58 +0000
Subject: Re: Can't find my error
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-304981@lists.php.net to get a copy of this message
2010/5/6 David McGlone <david@dmcentral.net>: > On Wednesday 05 May 2010 16:19:35 Paul M Foster wrote: >> On Wed, May 05, 2010 at 01:03:41PM -0400, David McGlone wrote: >> > On Wednesday 05 May 2010 12:51:00 Ashley Sheridan wrote: >> > > On Wed, 2010-05-05 at 12:55 -0400, David McGlone wrote: >> > > > I've checked and checked and re-checked and I can't figure out >> > > > what >> > > > I've done wrong. I'm getting a parse error: >> >> <snip> >> >> > WOW!!!! I have spent at least 4 hours reading and re-reading it and it >> > took you 3 seconds. >> > >> > That was the problem. How, how, how could I have overlooked that so many >> > times???? >> > >> > Thank you Ashley, I should have asked you 3 hours ago. ;-) >> >> Yeah, David, the rest of us are really disappointed in you. I mean, it's >> not like that's ever happened to *us*. ;-} > > I've been studying PHP for at least 2 years straight now, after dabbling in it > for about a year 6 years ago. So even though I've had my nose to the grind for > a good 2 years now, I don't think I can call my mistake a "rookie mistake". > Thats what's frustrating to me. LOL > > -- > Blessings, > David M. I would take this as a hint to prefer intval() instead of casts. initval($foo) would have drawn a fatal error - can't be overseen. ;) Regards

« previous php.general (#304981) next »