I.T. Discussion Community!
-Collapse +Expand
PHP
Search PHP Group:

Advanced
-Collapse +Expand PHP Group Home

WEEKLYLESSON
Week 49 Lesson◄╣

MY
GROUPSETTINGS
-Collapse +Expand PHP Store
PRESTWOODSTORE
   ► All GroupsPHP Group   Print This    All Groups  

Weekly PHP Lesson

Week 49, Posted Monday 12/9/2019

Content changes every Monday @ 1AM!! Check back once per week. Learn! Review! Test Yourself!

Lastest PHP Flashcard

Our flashcards are part of our library of tidbits.

Tidbits are FAQs, Definitions, Tips, and Code Snippets from our knowledge base.

PHP Constants (define)

In PHP, you declare constants using the define keyword:

define("CONST_NAME", "Value");

Constants in PHP are case sensitive. A common standard in PHP is to use all-uppercase letters, with underscores to separate words within the name.

define('FULL_NAME', 'Mike Prestwood');
define("AGE", 25);
  
echo "Your name is " . FULL_NAME . ".";
echo "You are " . AGE . ".";
Posted By Mike Prestwood, Post #102185, KB Topic: PHP

Follow PrestwoodBoards on: 


©1995-2019 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech