このコードを $val1 $val2 の値より短くする方法はありますか ....... クエリの結果です
$val1 = 1;
$val2 = 2;
$val3 = 3;
$val4 = 4;
$val5 = 5;
$val6 = 8;
$val7 = 7;
$val8 = 8;
$val9 = 8;
$val10 = 9;
$val11 = 13;
$val12 = 12;
echo $val1.",".$val2.",".$val3.",".$val4.",".$val5.",".$val6.",".$val7.",".$val8.",".$val9.",".$val10.",".$val11.",".$val12;
?>
これを簡単にする方法はありますか
echo $val1.",".$val2.",".$val3.",".$val4.",".$val5.",".$val6.",".$val7.",".$val8.",".$val9.",".$val10.",".$val11.",".$val12;