如何通过 for 循环做到这一点?我想根据它们在数组中的存在来设置变量...
if (isset($sort[3])) $c = 3;
if (isset($sort[4])) $d = 4;
if (isset($sort[5])) $e = 5;
if (isset($sort[6])) $f = 6;
if (isset($sort[7])) $g = 7;
if (isset($sort[8])) $h = 8;
if (isset($sort[9])) $i = 9;
if (isset($sort[10])) $j = 10;
if (isset($sort[11])) $k = 11;
if (isset($sort[12])) $l = 12;
if (isset($sort[13])) $m = 13;
if (isset($sort[14])) $n = 14;
if (isset($sort[15])) $o = 15;