News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

WebReference.com:
The Building Blocks Data Types, Literals, Variables, and Constants - Part 3
January 29, 2007 @ 11:44:00

WebReference.com has posted part three of their "Building Blocks" series - a look at data types, literals, variables, and constants.

In part three, they focus more on the last type of "block" in their list - the constant:

Some real-world constants, such as pi, the speed of light, the number of inches in a foot, and the value of midnight, are values that don't change. PHP not only provides its own predefined constants but lets you create your own. Using constants makes it easy to write and maintain your programs.

There's talk of the define() and constant() functions and a mention of some of the predefined and "magic constants" as well.

0 comments voice your opinion now!
building blocks variable constant define magic building blocks variable constant define magic


blog comments powered by Disqus

Similar Posts

Nikita Popov: Order of evaluation in PHP

Vidyut Luther\'s Blog: Where do you \"define\" your environment/global settings?

Stefan Mischook's Blog: Building Objects Video (Parts 1, 2 & 3)

PHPMac.com: Building and Installing Apache 2.2.2 and PHP 5.1.4 on Mac OS X 10.4.6

WebReference.com: The Building Blocks: Data Types, Literals, Variables, and Constants - Part 3


Community Events

Don't see your event here?
Let us know!


introduction community podcast language composer api laravel php7 series conference opinion example framework symfony2 application performance configure release library interview

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework