1<documentation title="Constant Names"> 2 <standard> 3 <![CDATA[ 4 Constants should always be all-uppercase, with underscores to separate words. 5 ]]> 6 </standard> 7 <code_comparison> 8 <code title="Valid: all uppercase"> 9 <![CDATA[ 10define('<em>FOO_CONSTANT</em>', 'foo'); 11 12class FooClass 13{ 14 const <em>FOO_CONSTANT</em> = 'foo'; 15} 16 ]]> 17 </code> 18 <code title="Invalid: mixed case"> 19 <![CDATA[ 20define('<em>Foo_Constant</em>', 'foo'); 21 22class FooClass 23{ 24 const <em>foo_constant</em> = 'foo'; 25} 26 ]]> 27 </code> 28 </code_comparison> 29</documentation> 30