TOP TECH
  Learn How to.....
Welcome IT Related Articles Member Area  |  Sign In  |  Sign Up
.: Home :.
General
HTML
CSS
PHP
PHP-MySQL
FrontPage
Photoshop
CorelDRAW
PageMaker
MS Office
VisualBasic
All
.

.: Home :.

Home >> PHP - MySQL
PHP with example codes - 1.2 [Page 1]
Article by: Shelton Manage
Friday, 22nd May, 2009


Variables

A variable is a special container that that you can hold a value. According to the PHP manual, there are eight type of variables in the language.

Category - Data Types

Scalar - Boolean, Integer, floting point and String.

Compound - Array, Object

Special - Resourse, Null

  • A variable's name must start with a dollar sign, ($), For example $name, $link.
  • The name can contain a combination of string, numbers and the underscore, Ex: $my_report1.
  • The first charactor after the dollar sign cannot be number.
  • Variable names in PHP are case-sensitive. So $name and $Name are entirely different variables.

This is just a cursory introduction to variables. You'll learn more about specific types (Strings and numbers) as well as manipulating these later.



Page: First - 1 2 3 4 5 6 7 8 9 10 - Last

 



Comments


© 2009 Top Sri Lanka Top Tech.
Articles Manager β - Script by: DynamicCodes.com