PHP follows Perl’s convention when dealing with arithmetic operations on character variables and not C’s. For example, in Perl ‘Z’+1 turns into ‘AA’, while in C ‘Z’+1 turns into ‘[’ ( ord(’Z') == 90, ord(’[') == 91 ). Note that character variables can be incremented but not decremented and even so only plain ASCII characters (a-z and A-Z) are supported.
uh, cũng chả hiểu sao, đợt trước gặp 1 lần nhưng cũng ko dùng đến nhiều nên chẳng để ý.
chang co’ gì vô lý cả. Vì “z”
vì “z”
Khi là một ký tự thì PHP xem như dữ liệu như dạng char của C++
http://vn2.php.net/manual/en/language.operators.increment.php
PHP follows Perl’s convention when dealing with arithmetic operations on character variables and not C’s. For example, in Perl ‘Z’+1 turns into ‘AA’, while in C ‘Z’+1 turns into ‘[’ ( ord(’Z') == 90, ord(’[') == 91 ). Note that character variables can be incremented but not decremented and even so only plain ASCII characters (a-z and A-Z) are supported.