A Little Noise
Written by
in
<?php $a = 4; echo $a+++$a++; ?>
What is the output? Answer: 9. The first $a++ looks up 4, then increments $a. The second $a++ looks up 5, then increments $a. 4 + 5 = 9. $a now contains 6.
Your email address will not be published. Required fields are marked *
Comment *
Name *
Email *
Website
Save my name, email, and website in this browser for the next time I comment.
Notify me of follow-up comments by email.
Notify me of new posts by email.
Δ
This site uses Akismet to reduce spam. Learn how your comment data is processed.
Leave a Reply