Monkuar Posted February 28, 2009 Share Posted February 28, 2009 Please explain to me in dummy proof sentances because im french and also noob, but i am smart if($counter++ >1) { $buddylist .="<br> "; $counter=1; } else {$buddylist .= "";} what's the if $counter++ ?? WTF IS THE TWO Pluces represent? lol and > is greater then 1 then do $buddylist? Thanks for your help PHPFREAKS! <3 Link to comment https://forums.phpfreaks.com/topic/147251-whats-mean-wtf/ Share on other sites More sharing options...
ngreenwood6 Posted February 28, 2009 Share Posted February 28, 2009 The ++ at the end adds 1 to whatever value $counter has. It being at the end means that it adds it after is uses it. If you put it before (++$counter) it adds it before it uses. Link to comment https://forums.phpfreaks.com/topic/147251-whats-mean-wtf/#findComment-773002 Share on other sites More sharing options...
Monkuar Posted February 28, 2009 Author Share Posted February 28, 2009 so then 1+1 = 2 > 1 ? then it uses $buddylist .="<br>"; if the $counter is greater with + + the 1 Link to comment https://forums.phpfreaks.com/topic/147251-whats-mean-wtf/#findComment-773006 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.