Basic PHP

DOWENLODE & INSTALL XAMPP OR WAMPP FROM THIS LINK
XAMPP DOWENLODE LINK -https://www.apachefriends.org/download.html
WAMPP DOWENLODE LINK -https://sourceforge.net/projects/wampserver/
"
<?php

echo "<h1>Hello SIP</h1>";
$a=20;
$b=10;
function add()
{
global  $a;
global  $b;
echo "<br>".($a+$b);
}
add();

$a=20;
$b=10;
function sub()
{
global  $a;
global  $b;
echo "<br>".($a-$b);
}
sub();

$a=20;
$b=10;
function mul()
{
global  $a;
global  $b;
echo "<br>".($a*$b);
}
mul();

$a=20;
$b=10;
function div()
{
global  $a;
global  $b;
echo "<br>".($a/$b);
}
div();

$a=20;
$b=10;
function moldiv()
{
global  $a;
global  $b;
echo "<br>".($a/$b);
}
moldiv()
?>
"

Comments

Post a Comment