$data = 'L-15';
$arr =array(
'L-12'=>'1265-50-7 20160720 7_IESNA95.IES',
'L-15'=>'1565-50-7 20160720 7_IESNA95.IES'
);
for($i = 0, $n = count($arr);$i < $n; $i++){
if($data == key($arr)){
$filepath = current($arr);
}
}
die(var_dump($filepath));
我想取对应的值赋值给 $filwpath 出错 打印说没定义$filepath ;
snowmanJS
罗夜夜
Caballarii