Re: [PHP] Basic switch statement

2010-04-16 Thread Jim Lucas
tedd wrote: > At 9:06 AM -0400 4/16/10, Robert Cummings wrote: >> >> It runs in a terminal! >> >> Cheers, >> Rob. > > That's not good. Airport security frowns on that. > > Cheers, > > tedd > Mac users might get a little upset if Airport security doesn't allow them to use their terminals to run

Re: [PHP] Basic switch statement

2010-04-16 Thread tedd
At 9:06 AM -0400 4/16/10, Robert Cummings wrote: It runs in a terminal! Cheers, Rob. That's not good. Airport security frowns on that. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] Basic switch statement

2010-04-16 Thread Robert Cummings
Jan G.B. wrote: 2010/4/16 Adam Richardson : On Thu, Apr 15, 2010 at 5:55 PM, Jason Pruim wrote: On Apr 15, 2010, at 8:55 AM, tedd wrote: At 4:13 PM -0400 4/14/10, Al wrote: Incidentally, about formatting scripts, one of the reasons I like phpEdit is that it has a terrific code beautifier.

Re: [PHP] Basic switch statement

2010-04-16 Thread Jan G.B.
2010/4/16 Adam Richardson : > On Thu, Apr 15, 2010 at 5:55 PM, Jason Pruim > wrote: > >> >> On Apr 15, 2010, at 8:55 AM, tedd wrote: >> >>  At 4:13 PM -0400 4/14/10, Al wrote: >>> Incidentally, about formatting scripts, one of the reasons I like phpEdit is that it has a terrific code bea

Re: [PHP] Basic switch statement

2010-04-15 Thread Adam Richardson
On Thu, Apr 15, 2010 at 5:55 PM, Jason Pruim wrote: > > On Apr 15, 2010, at 8:55 AM, tedd wrote: > > At 4:13 PM -0400 4/14/10, Al wrote: >> >>> Incidentally, about formatting scripts, one of the reasons I like phpEdit >>> is that it has a terrific code beautifier. You can set it for phpDoc or >>

Re: [PHP] Basic switch statement

2010-04-15 Thread Jason Pruim
On Apr 15, 2010, at 9:24 AM, Ashley Sheridan wrote: On Thu, 2010-04-15 at 08:55 -0400, tedd wrote: Have you tried Coder on the Mac? Most developers I know who use Macs (it's not the oxymoron it sounds! :p ) Most Mac people would say the morons use Windows ;) But that's another story f

Re: [PHP] Basic switch statement

2010-04-15 Thread Jason Pruim
On Apr 15, 2010, at 8:55 AM, tedd wrote: At 4:13 PM -0400 4/14/10, Al wrote: Incidentally, about formatting scripts, one of the reasons I like phpEdit is that it has a terrific code beautifier. You can set it for phpDoc or Pear rendering. And, it auto indents, etc. as you enter stuff.

Re: [PHP] Basic switch statement

2010-04-15 Thread Ashley Sheridan
On Thu, 2010-04-15 at 08:55 -0400, tedd wrote: > At 4:13 PM -0400 4/14/10, Al wrote: > >Incidentally, about formatting scripts, one of the reasons I like > >phpEdit is that it has a terrific code beautifier. You can set it > >for phpDoc or Pear rendering. And, it auto indents, etc. as you > >e

Re: [PHP] Basic switch statement

2010-04-15 Thread Bastien Koert
On Thu, Apr 15, 2010 at 8:55 AM, tedd wrote: > At 4:13 PM -0400 4/14/10, Al wrote: >> >> Incidentally, about formatting scripts, one of the reasons I like phpEdit >> is that it has a terrific code beautifier.  You can set it for phpDoc or >> Pear rendering. And, it auto indents, etc. as you enter

Re: [PHP] Basic switch statement

2010-04-15 Thread tedd
At 4:13 PM -0400 4/14/10, Al wrote: Incidentally, about formatting scripts, one of the reasons I like phpEdit is that it has a terrific code beautifier. You can set it for phpDoc or Pear rendering. And, it auto indents, etc. as you enter stuff. Al... Unfortunately, there is no phpE

Re: [PHP] Basic switch statement

2010-04-14 Thread Paul M Foster
On Wed, Apr 14, 2010 at 10:06:39PM +0100, Ashley Sheridan wrote: > On Wed, 2010-04-14 at 16:52 -0400, Paul M Foster wrote: > > > I've never had other coders looking over my shoulder, and I agonized for > years over whether my logical solutions were the "best" > approach. Now I >

Re: [PHP] Basic switch statement

2010-04-14 Thread Ashley Sheridan
On Wed, 2010-04-14 at 16:52 -0400, Paul M Foster wrote: > On Wed, Apr 14, 2010 at 12:28:13PM -0400, tedd wrote: > > > At 5:06 PM -0400 4/13/10, Robert Cummings wrote: > >> Nathan Rixham wrote: > >>> > >>> well that's one job I'm not getting :p > >> > >> Well you DID get 66.7%. I've met "coders" t

Re: [PHP] Basic switch statement

2010-04-14 Thread Paul M Foster
On Wed, Apr 14, 2010 at 12:28:13PM -0400, tedd wrote: > At 5:06 PM -0400 4/13/10, Robert Cummings wrote: >> Nathan Rixham wrote: >>> >>> well that's one job I'm not getting :p >> >> Well you DID get 66.7%. I've met "coders" that would stare at the >> answer and still not understand :D >> >> Cheers

Re: [PHP] Basic switch statement

2010-04-14 Thread Al
On 4/14/2010 12:28 PM, tedd wrote: At 5:06 PM -0400 4/13/10, Robert Cummings wrote: Nathan Rixham wrote: well that's one job I'm not getting :p Well you DID get 66.7%. I've met "coders" that would stare at the answer and still not understand :D Cheers, Rob. Well.. count me among those s

Re: [PHP] Basic switch statement

2010-04-14 Thread tedd
At 12:32 PM -0400 4/14/10, Robert Cummings wrote: tedd wrote: My "logic" works the other way -- when presented with a logic problem, I come up with a solution that works the way I think and I always to solve the problem presented. Perhaps my solution isn't as clever nor as cryptic as others, b

Re: [PHP] Basic switch statement

2010-04-14 Thread Robert Cummings
tedd wrote: At 5:06 PM -0400 4/13/10, Robert Cummings wrote: Nathan Rixham wrote: well that's one job I'm not getting :p Well you DID get 66.7%. I've met "coders" that would stare at the answer and still not understand :D Cheers, Rob. Well.. count me among those staring. I just don't get t

Re: [PHP] Basic switch statement

2010-04-14 Thread tedd
At 5:06 PM -0400 4/13/10, Robert Cummings wrote: Nathan Rixham wrote: well that's one job I'm not getting :p Well you DID get 66.7%. I've met "coders" that would stare at the answer and still not understand :D Cheers, Rob. Well.. count me among those staring. I just don't get those type

Re: [PHP] Basic switch statement

2010-04-14 Thread tedd
At 10:04 PM +0100 4/13/10, Nathan Rixham wrote: Robert Cummings wrote: > Nathan Rixham wrote: > Fail on that last one. -1 is not equivalent to FALSE :B well that's one job I'm not getting :p cheers for the picking that one up Rob And that's the reason why I hate test like that! The short

Re: [PHP] Basic switch statement

2010-04-13 Thread Nathan Rixham
Robert Cummings wrote: > Nathan Rixham wrote: >> Robert Cummings wrote: >>> Nathan Rixham wrote: Robert Cummings wrote: > Nathan Rixham wrote: >> Robert Cummings wrote: >>> steve_r wrote: I'm new to programming function check_it2($val) { echo

Re: [PHP] Basic switch statement

2010-04-13 Thread Robert Cummings
Nathan Rixham wrote: Robert Cummings wrote: Nathan Rixham wrote: Robert Cummings wrote: Nathan Rixham wrote: Robert Cummings wrote: steve_r wrote: I'm new to programming function check_it2($val) { echo gettype($val); switch($val) { case($val > 0 ): echo "Switch

Re: [PHP] Basic switch statement

2010-04-13 Thread Nathan Rixham
Robert Cummings wrote: > Nathan Rixham wrote: >> Robert Cummings wrote: >>> Nathan Rixham wrote: Robert Cummings wrote: > steve_r wrote: >> I'm new to programming >> >> function check_it2($val) { >> echo gettype($val); >> switch($val) { >> case($val

Re: [PHP] Basic switch statement

2010-04-13 Thread Robert Cummings
Nathan Rixham wrote: Robert Cummings wrote: Nathan Rixham wrote: Robert Cummings wrote: steve_r wrote: I'm new to programming, drive a truck in the day, now taking night courses to get a better job for my family. Please bear with me if this is a dumb question, I don't have much experience.

Re: [PHP] Basic switch statement

2010-04-13 Thread Nathan Rixham
Robert Cummings wrote: > Nathan Rixham wrote: >> Robert Cummings wrote: >>> steve_r wrote: I'm new to programming, drive a truck in the day, now taking night courses to get a better job for my family. Please bear with me if this is a dumb question, I don't have much experi

Re: [PHP] Basic switch statement

2010-04-13 Thread Robert Cummings
Nathan Rixham wrote: Robert Cummings wrote: steve_r wrote: I'm new to programming, drive a truck in the day, now taking night courses to get a better job for my family. Please bear with me if this is a dumb question, I don't have much experience. I'm taking a night class in HTML and PHP and c

Re: [PHP] Basic switch statement

2010-04-13 Thread Nathan Rixham
Robert Cummings wrote: > steve_r wrote: >> I'm new to programming, drive a truck in the day, now taking night >> courses >> to get a better job for my family. Please bear with me if this is a dumb >> question, I don't have much experience. >> >> I'm taking a night class in HTML and PHP and can't f

Re: [PHP] Basic switch statement

2010-04-13 Thread tedd
At 12:04 PM -0400 4/13/10, steve_r wrote: I'm new to programming, drive a truck in the day, now taking night courses to get a better job for my family. Please bear with me if this is a dumb question, I don't have much experience. -snip- Sorry for the basic question. Steve Reilly Steve: Pl

Re: [PHP] Basic switch statement

2010-04-13 Thread steve_r
Okay, I understand now, true/false is better, now it makes sense why it's always hitting the case it hits. Thank you Ashley.

Re: [PHP] Basic switch statement

2010-04-13 Thread Robert Cummings
steve_r wrote: I'm new to programming, drive a truck in the day, now taking night courses to get a better job for my family. Please bear with me if this is a dumb question, I don't have much experience. I'm taking a night class in HTML and PHP and can't figure out a problem and can't find the a

Re: [PHP] Basic switch statement

2010-04-13 Thread Ashley Sheridan
On Tue, 2010-04-13 at 12:04 -0400, steve_r wrote: > I'm new to programming, drive a truck in the day, now taking night courses > to get a better job for my family. Please bear with me if this is a dumb > question, I don't have much experience. > > I'm taking a night class in HTML and PHP and can

[PHP] Basic switch statement

2010-04-13 Thread steve_r
I'm new to programming, drive a truck in the day, now taking night courses to get a better job for my family. Please bear with me if this is a dumb question, I don't have much experience. I'm taking a night class in HTML and PHP and can't figure out a problem and can't find the answer in the book