-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path22.function with parameter.php
More file actions
83 lines (59 loc) · 1 KB
/
22.function with parameter.php
File metadata and controls
83 lines (59 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php
function hello($a, $b)
{
echo $a + $b . "<br>";
}
hello(5,10);
hello(5,10);
hello(5,10);
?>
<br>
<?php
function hel($name){
echo "Hello $name";
}
hel("World");
?>
<br>
<?php
function hell($name, $title){
echo "Hello $name $title <br>";
}
hell("World", "s");
hell("Bill", "Gates");
?>
<br>
<?php
function hellos($a = "Emran", $b = "Hasan")
{
echo $a. " " . $b . "<br>";
}
hellos();
hellos("Hello", "World");
hellos(15,10);
?>
<br>
<?php
function sum($c = 10, $d = 10)
{
echo "the sum is: " . $c + $d ."<br>";
echo "the sub is: " . $c - $d ."<br>";
}
sum();
sum(50,50);
sum(70, 20);
?>
<?php
function name ($hello='',$E=3){
return $hello . $E;
}
echo name();
function n ($hello,$E=3){
return $hello . $E;
}
echo n(1);
function no ($hello,$E=3, $g=''){
return $hello . $E;
}
echo no(1,2);
?>