PHP Operators Operators are used to perform operations on variables and values . In PHP there are different type of Operators are used: Ar...
Read More
Home / Unit 304
Showing posts with label Unit 304. Show all posts
Showing posts with label Unit 304. Show all posts
PHP Primitive Datatypes
PHP Primitive Datatypes When we deal with different types of values e.g. Rollno, Name, Address then we need datatypes which is used to ide...
Read More
PHP program to find area of triangle
PHP program to find Area of Triangle <?php $base=10; $height=10; $area=$base*$height*1/2; echo $area; ?> Output: 50 UNIT-304 Ele...
Read More
PHP program to find area of rectangle
PHP program to find Area of Rectangle <?php $length=10; $breadth=10; $area=$length*$breadth; echo $area; ?> Output: 100 UNIT-304 ...
Read More
PHP program to find area of circle
PHP program to find Area of Circle <?php define ("pi","3.14"); $r=10; $area=pi*$r*$r; echo $area; ?> Output: ...
Read More
PHP program to find simple interest
PHP program to find Simple Interest <?php $p=1000; $r=5; $t=10; $si=$p*$r*$t/100; echo $si; ?> Output: 500 UNIT-304 Elementary Ser...
Read More
PHP variables scope
PHP variables scope The scope of a variable is defined as its range in the program under which it can be accessed. PHP has three types of v...
Read More
How to create, save and run php file
How to Create, Save and Run PHP file Using Notepad and WAMP Server First we need to open Notepad, then we can type php codes Now we ca...
Read More
Subscribe to:
Posts
(
Atom
)