This Tutorial Is aimed for beginners in the PHP area.
Introduction Tutorial on PHP..
Firstly PHP stands for Hypertext Preprocessor.. It is an open source,interpretive,cross platform,HTML embedded, Server side language which lets you create dynamic Web Pages. Because PHP is A Server Side language it is executed on a server so the viewer cannot see the code.
To understand PHP you got to learn the basics.
Now PHP always starts with the <?php tag and ends with ?>
Those two tags Have to go at the top and bottom of the script in order for it to work...
Also the semicolon ";" is a seperator and is used to determine one set of instructions from the other.
This simple code is a perfect example...
<?php
echo "Hello World";
?>
This simple code just Outputs on your Page Hello World.
Another Topic I will be explaining Here is Variables..
All Variables in PHP start with the "$" symbol. variables can consist of numbers, arrays and strings.
The code Below will show you that I have attached the String "I am Ali" to a variable called $hi.
<?php
$hi = "I am Ali";
echo $hi;
?>
This code will Output on your screen "I am Ali".
Now if you want to integrate two,three or more variables all you got to use is the "." operator...
The code below will will show you that I have a $hi and $hi1 variable both being attached to strings and being outputed by the "." operator.
<?php
$hi = "I am Ali";
$hi1 = "1234";
echo $hi1 ."". $hi1 ;
?>
This script will output on your screen I am Ali1234.
This is my First ever Tutorial in PHP so I hope you like it and Soon I will make more on PHP..
By Hybr!d
Introduction Tutorial on PHP..
Firstly PHP stands for Hypertext Preprocessor.. It is an open source,interpretive,cross platform,HTML embedded, Server side language which lets you create dynamic Web Pages. Because PHP is A Server Side language it is executed on a server so the viewer cannot see the code.
To understand PHP you got to learn the basics.
Now PHP always starts with the <?php tag and ends with ?>
Those two tags Have to go at the top and bottom of the script in order for it to work...
Also the semicolon ";" is a seperator and is used to determine one set of instructions from the other.
This simple code is a perfect example...
<?php
echo "Hello World";
?>
This simple code just Outputs on your Page Hello World.
Another Topic I will be explaining Here is Variables..
All Variables in PHP start with the "$" symbol. variables can consist of numbers, arrays and strings.
The code Below will show you that I have attached the String "I am Ali" to a variable called $hi.
<?php
$hi = "I am Ali";
echo $hi;
?>
This code will Output on your screen "I am Ali".
Now if you want to integrate two,three or more variables all you got to use is the "." operator...
The code below will will show you that I have a $hi and $hi1 variable both being attached to strings and being outputed by the "." operator.
<?php
$hi = "I am Ali";
$hi1 = "1234";
echo $hi1 ."". $hi1 ;
?>
This script will output on your screen I am Ali1234.
This is my First ever Tutorial in PHP so I hope you like it and Soon I will make more on PHP..
By Hybr!d