const ANIMALS = array('dog', 'cat', 'bird'); echo ANIMALS[1]; // 出力は "cat". PHP7 なら、define でも次のように書けます。
確定! 回上一頁