Re: Re: ramble was [PHP] Not sure of my error

From: Date: Sat, 18 Nov 2000 05:45:38 +0000
Subject: Re: Re: ramble was [PHP] Not sure of my error
Groups: php.general 
Request: Send a blank email to php-general+get-26025@lists.php.net to get a copy of this message
Addressed to: Distribution list (see below) ** Reply to note from Philip Olson <philip@theprojects.org> Sat, 18 Nov 2000 01:14:53 +0000 (GMT) > > such as : > > if ($foo == '') > One thought... If you get in the habbit of writing this as ( '' == $foo ) you will get a syntax error instead of faulty operation if you ever accidentaly type ( '' = $foo ). if( $foo = '' ) is legal code, but not even close to what you want, and often hard to debug. (I came from a Pascal/Delphi background, and don't want to admit how many hours I spent tracking that little problem.) Rick Widmer Internet Marketing Specialists www.developersdesk.com Distribution list: Philip Olson <philip@theprojects.org> Joe Stump <joe@earth.care2.com> Matt Stone <matt@planetveggie.com> php-general@lists.php.net

« previous php.general (#26025) next »