問題タブ [riot-games-api]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
php - Riot API からサモナー用にこの変数を作成する方法の何が問題になっていますか?
enter code here
このコードが返すエラーは
「オブジェクト以外のプロパティを取得しようとしています」または「メッセージ: 未定義のプロパティ: stdClass::$name」。
変数$summonerは機能しません。変数 sID、$lcaseregion、$APIkey (など) がすべて適切に設定されていると仮定します。
print_r 結果;
配列がどのように機能するかについて、他のアドバイスやヒントをいただければ幸いです。