How to embed PHP script in the Webpage

The PHP script is used to make a website dynamic.

The code must be written within the defined PHP tags otherwise it would not execute.

With tags, you can display the final output after data manipulation e.g. listing fetch records from MySQL database in the <table>, display value in HTML element, upload image, etc.

How to embed PHP script in the Webpage

Read more

How to Create a variable in PHP

A variable is used to store information and it is accessible later in the program.

It has a user-defined name.

In PHP you don’t need to specify the Datatype of a variable it automatically converts its type according to the assigned value.

There are different types of variables are available –

  1. Local variable
  2. Global variable
  3. Static variable

How to Create a variable in PHP

Read more