如何在 PHP 中调用父类的非静态方法形成子类的静态方法?请帮忙。
public static function countryArray(){
$sql = "SELECT `country_id`, `country_name` FROM `dr_tbl_country`";
$resultSet = parent::dBQueryExecute($sql);
if(mysql_num_rows($resultSet) > 0){
$countryArray = array();
while($result = mysql_fetch_array($resultSet)){
extract($result);
$countryArray[$country_id]['country_id'] = $country_id;
$countryArray[$country_id]['country_name'] = $country_name;
}
return $countryArray;
}else{
return false;
}
}