Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
$x = 'a' $x ++;
输出 b
$x = 'z' $x ++;
输出 aa
我正在尝试获得相同的结果,但使用字符集数组,因此我可以使用数字和大写字母以获得更多可能的组合,有人知道该怎么做吗?
<?php $str = 'a'; echo ++$str; // b $str = 'z'; echo ++$str; // aa $str = 'aA'; echo ++$str; // aB ?>