我有以下阵列:
$front = array("front_first","front_second");
$back = array("back_first", "back_second", "back_third","back_fourth");
什么,我试图做的是输出合并它们如此像这样会导致:
$final = array(
"back_first",
"front_first",
"back_second",
"front_second",
"back_third",
"front_second",
"back_fourth",
"front_second"
);
我怎样才能让它重复在最短的数组中的最后一个值,以便它可以合并成一个没有空值的$final[]
?.
是在orderis重要。 – thindery