TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Glossary Navigation
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | All


C
Class
A class is an entity that encapsulates properties and methods. A class is made of properties (variables) and methods (functions), and can also contain class constants.
More can be found here: http://uk.php.net/class
Class Constant
Class constants are set within a class and can only be accessed by the class they were set in. They are created a little differently from a typical constant, but share the same characteristics: cannot be unset, changed, should be uppercase, underscore instead of a space. Class constants are defined like so:

php Code:
const MY_CONSTANT = 'My Data';
Comments
Comments make your PHP script easier to read. You can create single line comments by placing // at the begining of the line, or multiline comments by starting the comment block with /* and ending it with */
Comparison
When you compare two values or variables. Straight comparisons are done using two equal signs. For example - if ($myVar == $otherVar) - or - if ($myVar < $otherVar)
Condition
A condition is used to control loops and is generally a Boolean value
Constant
A constant is a way of storing a text item or number that cannot change. Constants cannot be unset or modified and are used for such things as database credentials. A typical constant may be created like so:

php Code:
define('MY_CONSTANT', 'My Data');

Constants should always be upper cased and contain underscores instead of spaces.

All times are GMT. The time now is 09:25 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design