News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
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



Similar Posts

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

The Hacker Webzine: Two PHP Reconnaissance Vectors

Paul Jones' Blog: New PDO Behavior In PHP 5.2.1

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

Derick Rethans' Blog: Overloaded properties (__get)


Community Events







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


conference developer application ajax framework release package example security database zendframework zend book mysql job PEAR releases PHP5 cakephp code

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