Hi to all
today i am not able to attend the classes at Innobuzz but sir send me the mail
today sir teach Array And Function in PHP i am posting now what happin in the class
/*
// Function
$g=10;
function func($a, $b, $c, $d=5)
{
print "$a
";
print "$b
";
print "$c
";
print "$d
";
}
function add($a, $b)
{
$sum=$a+$b;
return $sum;
}
function glo()
{
global $g;
print "$g
";
}
$a=1;
$b=2;
func('This is a function', $a, $b, 8);
$c=add(4, 5);
print "$c
";
glo();
//Make a calculator using the functions
?>
//Array
// Function
$g=10;
function func($a, $b, $c, $d=5)
{
print "$a
";
print "$b
";
print "$c
";
print "$d
";
}
function add($a, $b)
{
$sum=$a+$b;
return $sum;
}
function glo()
{
global $g;
print "$g
";
}
$a=1;
$b=2;
func('This is a function', $a, $b, 8);
$c=add(4, 5);
print "$c
";
glo();
//Make a calculator using the functions
?>// Function
$g=10;
function func($a, $b, $c, $d=5)
{
print "$a
";
print "$b
";
print "$c
";
print "$d
";
}
function add($a, $b)
{
$sum=$a+$b;
return $sum;
}
function glo()
{
global $g;
print "$g
";
}
$a=1;
$b=2;
func('This is a function', $a, $b, 8);
$c=add(4, 5);
print "$c
";
glo();
//Make a calculator using the functions
?>
thanks for reading
*/
No comments:
Post a Comment