Search Help Board

PHP Articles
PHP Help
Bulletin Board

PHP Manual (NEW!)
First Time PHP'ers
Help with programming
Sql assignment help
PHP Homework Help

C# Help


Previous Page Page 3 of 5 Next Page


Variables allow you to store and retrieve frequently used data.?

PHP Code:

$string = "Hello!";

echo "";
echo "$string";
echo "";


Web Browser Result:


All variables start with a dollar sign ($).

The name of the variable can consist of letters and numbers, but must begin with a letter.? It can also contain special characters like underscore '_', see the variable section in the manual for more information.

Variables in PHP can also contain different data types, for instance:
$string = 2;
$string = "blue";

Previous Page Page 3 of 5 Next Page