+ 1

What happens in my confuse coding i don't understand?

php-increment & decrement topic https://code.sololearn.com/w6GFWeFUrE5L/?ref=app

26th Nov 2017, 12:46 PM
Ankush Awasthi
Ankush Awasthi - avatar
4 Answers
+ 2
that's because of ASCII values , when you increment an alphabet , it increments its ASCII value and the converts it to character , thus you get the output aa.
28th Nov 2017, 8:53 AM
RZK 022
RZK 022 - avatar
+ 1
I understand because of increment of after z comes aa similarly if zz comes aaa then comes.
26th Nov 2017, 2:02 PM
Ankush Awasthi
Ankush Awasthi - avatar
0
increment means add 1 value, decrement means substract 1 value
26th Nov 2017, 1:12 PM
Andika Romansyah