这是我的数组
$list=array('first','second','third','fourth','fifth','sixth','seventh','eighth','ninth','tenth','eleventh','twelvelveth','thirteenth');
我想这样显示:
第一行 :first,second,third,fourth,fifth,sixth,seventh,eighth,ninth,tenth,eleventh,twelvelveth,thirteenth
第二行 :second,third,fourth,fifth,sixth,seventh,eighth,ninth,tenth,eleventh,twelvelveth,thirteenth,first
第三行:third,fourth,fifth,sixth,seventh,eighth,ninth,tenth,eleventh,twelvelveth,thirteenth,first,second
第四行:fourth,fifth,sixth,seventh,eighth,ninth,tenth,eleventh,twelvelveth,thirteenth,first,second,third
以此类推。
当我在主数组上添加值或删除值时。输出也应该改变。