+ 2

Why the output is "i love php"?

Please some explain me .. Code: <?php $var = "i love pho"; echo ++$var; ?>

12th Jul 2020, 5:42 AM
Nikhil Maroju
Nikhil Maroju - avatar
1 Réponse
+ 1
The ++ to the var makes it to increment the last character by 1. THAT is p (comes after o)
3rd Aug 2020, 3:49 PM
sid
sid - avatar