Example in PHP

After variable, let's try some basic program in PHP.

Sum of Two Numbers

echo " The sum =$res";


The output of this program as follows:-

example sheet 1 in php

		Figure 1

Calculate Gross Salary

For Example:-

echo " The Gross Salary is $gross_sal";


In this code I only declare the variable but didn't assign any value. The output of this code as follows:-

Practical assighment in php

		Figure 2

Similarly you can try many programs.