PHP 코드
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<?php
class
Testclass
{
public
static
$name
=
"이름1"
;
public
static
function
location(
String
$city
)
{
print_r(
$city
);
}
}
print_r(
Testclass::
$name
);
print_r(
"<br><br>"
);
Testclass::
location(
"서울"
);
?>
|