RE: [PHP] Help understanding code...

2003-09-25 Thread Robert Cummings
nk of it as > > If (NOT(TWO STRINGS ARE EQUAL)) THEN { > DO THIS STUFF > } > > > > -Original Message- > From: Jeff McKeon [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 25, 2003 9:55 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: RE: [PHP

RE: [PHP] Help understanding code...

2003-09-25 Thread Giz
). You could think of it as If (NOT(TWO STRINGS ARE EQUAL)) THEN { DO THIS STUFF } -Original Message- From: Jeff McKeon [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 9:55 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] Help understanding code... Thanks for

Re: [PHP] Help understanding code...

2003-09-25 Thread Brent Baisley
Your assumptions are correct. It's called a ternary operator and it is a substitution or the if-else statements. I try not to overuse it since I don't think it's as readable as the block if statement. But for things not assigning a value to a variable, I think it's better than the block sta

RE: [PHP] Help understanding code...

2003-09-25 Thread Jeff McKeon
September 25, 2003 12:50 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Help understanding code... > > > ! means not, for example $yes != $no > > Regarding the (xxx) ? x : x; > Your assumption is correct > > I use it alot, but sometimes it's still better to us

Re: [PHP] Help understanding code...

2003-09-25 Thread Robert Cummings
On Thu, 2003-09-25 at 12:47, Jeff McKeon wrote: > I've just picked up a more advanced book on PHP and it has a lot of > example code in it. I understand most of it but some things I'm seeing I > don't understand. Like the following... > > code: > -

Re: [PHP] Help understanding code...

2003-09-25 Thread Jonathan Villa
! means not, for example $yes != $no Regarding the (xxx) ? x : x; Your assumption is correct I use it alot, but sometimes it's still better to use if/else statements On Thu, 2003-09-25 at 11:47, Jeff McKeon wrote: > I've just picked up a more advanced book on PHP and it has a lot of > example co