$ 0 0 結論 定数として定義している配列から最後の要素のキーや値を取得したい場合は、array_key_last を使いましょう。 再現 class Test { const NUMBERS = [10,2…