Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

PHP constant

class Human {
  const TYPE_MALE = 'm';
  const TYPE_FEMALE = 'f';
  const TYPE_UNKNOWN = 'u'; // When user didn't select his gender
  
  .............
}
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #PHP #constant
ADD COMMENT
Topic
Name
8+5 =