私はphpで新しいです。
stdClass オブジェクトを解析してみてください:
$datastoresArray = $geoserver->listDataStores($item->name);
foreach ($datastoresArray as $dstores){
if($dstores->dataStore != null){
$dstore = $dstores->dataStore;
foreach ($dstore as $item){
echo " - ".$item->name."\n";
}
}
}
この行でif($dstores->dataStore != null){エラーが発生しますTraing to get property of non-object。時々私は持っていないdataStoreので$dstores。私が持っているものと持っていないものを知る方法dataStoreは?