Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php variable constant

if (...) {
     const FOO = 'BAR';    // Invalid
 }
 // but
 if (...) {
     define('FOO', 'BAR'); // Valid
 }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #variable #constant
ADD COMMENT
Topic
Name
5+5 =