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
PHP program to find subtraction of 2 numbers
PHP program to find subtraction of 2 numbers <?php $no1=3; $no2=2; $result=$no1-$no2; echo "The subtraction of two numbers is: ...
Read More
PHP program to find sum of 2 numbers
PHP program to find the sum of 2 numbers Here is a simple PHP program example to find the sum of 2 numbers <?php $no1=3; $no2=2; $...
Read More
PHP program to find minimum of 5 numbers
PHP program to find the minimum of 5 numbers <?php $no1=3; $no2=2; $no3=5; $no4=6; $no5=7; echo min($no1, $no2, $no3, $no4, $no5); ?...
Read More
PHP program to find maximum of 5 numbers
PHP program to find the maximum of 5 numbers <?php $no1=3; $no2=2; $no3=5; $no4=6; $no5=7; echo max($no1, $no2, $no3, $no4, $no5); ?...
Read More
PHP variable
PHP Variable - variables are termed as containers and we can place data into these containers and then, we can use these containers dat...
Read More
PHP Introduction
PHP PHP is a server side scripting language. It is used to develop Static websites or Dynamic websites or Web applications. PHP stands f...
Read More
Subscribe to:
Posts
(
Atom
)