RE: [PHP] Why does it work this way?

2001-04-03 Thread Mark Roedel
-Original Message- From: Yasuo Ohgaki [mailto:[EMAIL PROTECTED]] Sent: Monday, April 02, 2001 8:00 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Why does it work this way? I guess PHP is doing this $str = "a"; $str++; as $str = "a"; $str = $str

Re: [PHP] Why does it work this way?

2001-04-03 Thread Yasuo Ohgaki
. -- Yasuo Ohgaki ""Mark Roedel"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... -Original Message- From: Yasuo Ohgaki [mailto:[EMAIL PROTECTED]] Sent: Monday, April 02, 2001 8:00 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Why

[PHP] Why does it work this way?

2001-04-02 Thread Boget, Chris
for( $i = "a"; $i = "z"; $i++ ) { } Not entirely too sure why, but the above works. And it's really cool that it does. :) However, it doesn't work as one would expect (aside from the fact that it works at all :p). Just looking at it, I would think that it would iterate from "a" to "z" and

[PHP] Why does it work this way?

2001-04-02 Thread Mark Roedel
-Original Message- From: Boget, Chris [mailto:[EMAIL PROTECTED]] Sent: Monday, April 02, 2001 11:12 AM To: Mark Roedel Subject: RE: [PHP] Why does it work this way? Because "z"+1 turns out to be "aa" (which, if you ask me, makes about as much sense as any of the a

Re: [PHP] Why does it work this way?

2001-04-02 Thread Yasuo Ohgaki
PROTECTED]... -Original Message- From: Boget, Chris [mailto:[EMAIL PROTECTED]] Sent: Monday, April 02, 2001 11:12 AM To: Mark Roedel Subject: RE: [PHP] Why does it work this way? Because "z"+1 turns out to be "aa" (which, if you ask me, makes about as much sense