Dynamic Add Section

PHP - Overview of syntax

Dynamic Add Section

 

We can easily create PHP file. If we create a file with .php extension that file become as PHP file.

Suppose to create a text file we use .txt extension to save the file, for document file we use .doc extension to save a document file. Same way we will use .php extension to create PHP file.

In a PHP file we can embade PHP code inside HTML, CSS, Javascript code.

To write a PHP code we need to use php tag. Inside the tag we can write PHP code. PHP tags look like -

In a PHP file we can use this tag anywhere.

PHP statement always ends with semi-colon(;)

The above code is the very basic example of PHP.

Where we can see in a PHP file we are using all kinds of HTML tag. Can add our CSS and JS.

When we need to display any text we can use PHP tag. Inside PHP tag there is echo keyword - which prints the text. echo is a PHP keyword using this keyword we can print text, number etc.

PHP keyword is case-insensitive we can write echo as well as we can ECHO both will print the value.

At the last we need to use semi-colon (;). Semi-colon is the end statement of PHP.

The above video tutorial will help you to understand in details. That will show you with very example and how to run PHP file.

Dynamic Add Section
Dynamic Add Section
Dynamic Add Section
Dynamic Add Section
Dynamic Add Section
Dynamic Add Section