php bug?

    Date: 09/25/07 (PHP Community)    Keywords: php

    i'm new to php (and this community) and just started taking an intro to php class to improve my skills. anyway, i made a mistake in some of my code at one point i wrote...

    $counter = $counter++

    to increment one instead of just...

    $counter++

    well, i had this going with a while() statement and it didn't work because $counter wasn't being incremented because $counter = counter++ isn't correct. but why is that? it still should increment, right? if you write $counter = $counter++ in the c language (well, with the appropriate syntax, as my instructor tried) it works just fine. he couldn't find any post of this php bug either. any thoughts?

    Source: http://community.livejournal.com/php/587454.html

« How do I look up… || Switch and Injection »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home