我有一个数组 ($skus),看起来像这样;
$skus[0] = "hello";
$skus[1] = "world";
$skus[2] = "sky";
$skus[3] = "is";
$skus[4] = "blue";
我的问题是,如何根据另一个数组获取该数组的子集,即子集数组是;
$words = array(0,2,4);
这将返回给我一个数组["hello", "sky", "blue"],即
$return[0] = "hello";
$return[1] = "sky";
$return[2] = "blue";
互换的青春
慕虎7371278