Re: RES: [PHP] inexplicable behaviour
| From: | kranthi | Date: | Sun, 26 Apr 2009 03:46:15 +0000 |
| Subject: | Re: RES: [PHP] inexplicable behaviour | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-291981@lists.php.net to get a copy of this message | ||
if $Count1 is never referenced after this, then certainly this
assignment operation is redundent. but assignment is not the ONLY
operation of this statement. if u hav not noticed a post increment
operator has been used which will affect the value of $Count as well,
and this operation is required for the script to work.
the script should work even if u replace
$Count1 = $Count++;
with
$Count++;
Kranthi.