Arcro Posted April 5, 2016 Share Posted April 5, 2016 In the php quiz there is a question about how to increment a variable. The correct answer is said to be $variable++ and the answer ++$variable is marked as wrong. This is not (entirely) according to the section 'PHP Increment / Decrement Operators' in the PHP Operators chapter! Link to comment Share on other sites More sharing options...
dsonesuk Posted April 5, 2016 Share Posted April 5, 2016 No! ++count is wrong in options provided, it did not have ++$count option. Link to comment Share on other sites More sharing options...
Arcro Posted April 6, 2016 Author Share Posted April 6, 2016 Yes you're right of course! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now