What Is PHP?
PHP stands for Hypertext Preprocessor and is a server-side language. PHP is a server-side scripting language designed for web development but also used as a general-purpose programming language. PHP is now installed on approx. 244 million websites and 2.1 million web servers.
How To Declare PHP
PHP are always enclosed in between two PHP tags. This tells server to parse the information between them as PHP. The syntax is as follows:
<?php PHP Code Comes Here ?>
How to Define PHP Variables:-
PHP Variables starts with a $ sign, followed by the name of the variable. A variable name should not contain spaces.The name of the variable must begin with alphabet or underscore. Variable names are case sensitive (A and a are different variables).
<?php $str="This is a PHP Code."; $n=16; $p="PHP is easy to learn."; ?>