php Tutorials
Creating An RSS Feed With PHP And MySQL
Retrieving XML With Curl and SimpleXML
Using curl to Query Remote Servers
MySQL Basics
PHP mySQL Voting Booth
File Download Security
PHP Fundamentals

PHP Fundamentals

Basic Syntax

All PHP code must be enclosed inside <? and ?> closing tags
echo outputs text.

echo $a;

will display the value of $a which is 1

echo "Display this text $a=$a";

will display whatever is between the double quotes including the value of variables. Notice the used in the statement. The will escape the next character. Using a before special characters like " $ display the character. Using

echo 'Displays this text $a'; Displays everything inside single quotes. Variables are not interpreted. The example above displays as Displays this text $a.

 1 2 3 4 5 6  >> Variables and Arrays
New Content