PHP Language - Variables
How To Reference A PHP Variable
This tutorial will show you how to allow a function to change a variable that is not part of the function. You can reference, or point to, the original variable when you pass an argument to the function. By doing this, you can manipulate the value of the original variable from within the function.
More About PHP Variables
When it comes to working with variables in PHP there are a few basics that you should keep fresh in your mind. Here we will discuss the types of PHP variables and a few rules you need to follow when naming your variables.
PHP Superglobal Variables and Register_Globals
PHP has a special kind of variable which is called a superglobal. The reason these variables are special is because they are automatically available to any PHP program without the programmer creating or defining them in his program. You can think of them as built-in variables.
The Availability Of A PHP Variable
Many beginning PHP programmers are confused as to when a PHP variable is available within a PHP program. Basically it depends on how and where the variable is declared or created.
The PHP Variable
The PHP variable is the work horse of the PHP programming language. It works like one of those cardboard storage boxes that you can buy from the office supply store. The storage box is empty (or null) until you put something inside. That something is the information or data that you wish to store
Top Ten Articles
Previous Features
Site Map
Content copyright © 2018 by . All rights reserved.
This content was written by . If you wish to use this content in any manner, you need written permission. Contact BellaOnline Administration for details.