Re: [PHP] Testing Variables

2003-10-01 Thread Curt Zirzow
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]): > * Thus wrote Chris Shiflett ([EMAIL PROTECTED]): > > --- Curt Zirzow <[EMAIL PROTECTED]> wrote: > > > if ($do || false == $do ) { > > > try(); > > > } > > > /* Do, or do not. There is no try. */ > > > > Isn't there always try? :-) > > Only in php5

Re: [PHP] Testing Variables

2003-10-01 Thread Gerard Samuel
Curt Zirzow wrote: Yep. Just make sure you dont start speaking english like that, people will look at you funny, or think your yoda :) if ('away' == $put_your_weapon) { $harm = false; } /* Away put your weapon, I mean you no harm */ or if ( 'help' == $you_can ) { hmm(); } /* Help you can, Hm

Re: [PHP] Testing Variables

2003-10-01 Thread Curt Zirzow
* Thus wrote Chris Shiflett ([EMAIL PROTECTED]): > --- Curt Zirzow <[EMAIL PROTECTED]> wrote: > > if ($do || false == $do ) { > > try(); > > } > > /* Do, or do not. There is no try. */ > > Isn't there always try? :-) Only in php5 :) Curt -- "I used to think I was indecisive, but now I'm not s

Re: [PHP] Testing Variables

2003-10-01 Thread Chris Shiflett
--- Curt Zirzow <[EMAIL PROTECTED]> wrote: > if ($do || false == $do ) { > try(); > } > /* Do, or do not. There is no try. */ Isn't there always try? :-) Chris = HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp My Blog http:/

Re: [PHP] Testing Variables

2003-10-01 Thread Curt Zirzow
* Thus wrote Richard Baskett ([EMAIL PROTECTED]): > on 10/1/03 8:23 PM, Gerard Samuel at [EMAIL PROTECTED] wrote: > > > I've noticed code written in this order -> > > if (FALSE === $foo) > > { > > // yada yada > > } > > > > Is there a reason/benefit to test variables like that instead of -> > >

Re: [PHP] Testing Variables

2003-10-01 Thread Richard Baskett
on 10/1/03 8:23 PM, Gerard Samuel at [EMAIL PROTECTED] wrote: > I've noticed code written in this order -> > if (FALSE === $foo) > { > // yada yada > } > > Is there a reason/benefit to test variables like that instead of -> > if ($foo === FALSE) > { > // yada yada > } > > Thanks I think it'

[PHP] Testing Variables

2003-10-01 Thread Gerard Samuel
I've noticed code written in this order -> if (FALSE === $foo) { // yada yada } Is there a reason/benefit to test variables like that instead of -> if ($foo === FALSE) { // yada yada } Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph