for($i=0;$i<20;$i++){ $Matrix .= chr(65 + rand(0,26)); } 转载于:https://www.cnblogs.com/sunxun/p/4236515.html