Refactor foreach() loop.
All checks were successful
The build was successful.

In AerScript, the foreach() loop is syntatically more similiar to C#, than PHP. However the optional '$key => $value' construct is still available, because arrays in AerScript are still a hashmaps.
This commit is contained in:
2019-04-30 23:38:59 +02:00
父節點 1156519af6
當前提交 4d8d92092e
共有 6 個文件被更改,包括 89 次插入203 次删除

查看文件

@@ -38,7 +38,7 @@ class Unicode {
if($to_uni) {
$str = strtr($str, $cp);
} else {
foreach($cp as $c) {
foreach($c in $cp) {
$cpp[$c] = array_search($c, $cp);
}
$str = strtr($str, $cpp);