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 Quote 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. Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/147251-whats-mean-wtf/#findComment-773006 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.