function check($n){return !stristr($n,"popo")} $p=array('popo','popo','popo','kokoko'); $a=array_filter($p,'check'); echo $a[0]; // why does this return 0? shouldn't it return 'kokoko'?