时间:2021-07-01 10:21:17 帮助过:3人阅读
public static function editPlaceSelect($places=[], $city_id=-1){ if(is_array($places) && count($places)>0){ foreach ($places as $place){ $this->areaPlace($city_id, $place['area_id'], $place['address']); } }else{ echo '
红色代码处应改为:
self::areaPlace($city_id, $place['area_id'], $place['address']); $this->areaSelect($city_id, $area_id);
以上就介绍了Using $this when not in object context错误信息,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。