我有这个多维数组(截图)。我想在当前数组结构中的新数组中组合“day”值(在“week_days”数组中)。
期望的结果是:
public void testMethod2() {
PowerMockito.when(externalService.getSomething).thenReturn("bbb");
Mockito.reset(externalService);
}
public void testMethod3() {
PowerMockito.when(externalService.getSomething).thenReturn("ccc");
Mockito.reset(externalService);
}
答案 0 :(得分:0)
试试这个:
<?php
$fname=array("Peter","Ben","Joe");
$age=array("35","37","43");
$c=array_combine($fname,$age);
print_r($c);
?>