Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
if文で変数を使いたいのですが、設定されているかどうかわかりません。
私は現在これを行っています
if (isset ($array['var']) && ($array['var']==5) ) ....
これを行うには、よりエレガントな方法が必要です。ベストプラクティスは何ですか?