[PHP]Class Example

개발관련/PHP 2012. 4. 20. 15:13 |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!--?php
 
class Person {
     
}
 
//$classes = get_declared_classes();
//foreach($classes as $class) {
//  echo $class ."<br /-->";
//}
 
if(class_exists("Person")) {
    echo "That class has been defined.<br>";
} else {
    echo "Class not defined!<br>";
}
 
?>

That class has been defined.

'개발관련 > PHP' 카테고리의 다른 글

[PHP]Class Example 3  (0) 2012.04.20
[PHP]Class Example 2  (0) 2012.04.20
[PHP]Array Functions  (0) 2012.04.20
[PHP]Access Modifiers 2  (0) 2012.04.20
[PHP]Access Modifiers  (0) 2012.04.20
Posted by 파노카페
: