if ($content = getData('LED'))
{
return $content;
}需要在线遍历数组,直到内容不为空!多么?Sry代表糟糕的英语
发布于 2010-06-04 15:33:49
$airports = array('LED','DME','SVO','VKO','AER','KRR','IKT','KGP','KHV');
foreach($airports as $airport) {
if($content = getData($airport)) {
return $content;
}
}发布于 2010-06-04 15:30:15
你指的是像array_walk、in_array、foreach或array_reduce这样的东西吗?
发布于 2010-06-04 15:29:36
foreach
或者while,如果您喜欢的话
https://stackoverflow.com/questions/2972219
复制相似问题