-
[객체지향PHP]7.Namespace서버/PHP 2020. 11. 5. 08:03
<?php namespace Person; class Person{ } ?>
을 외부에서 불러오려면
$person1=new Person\Person();
네임스페이스이름 백슬래시 클래스();
'서버 > PHP' 카테고리의 다른 글
[객체지향PHP]8.Interface (0) 2020.11.06 Type Declaration (0) 2020.11.05 [객체지향PHP]6.include (0) 2020.11.05 [객체지향PHP]5.Static ::(Scope Resolution Operator) (0) 2020.11.05 [객체지향PHP]4.객체 지우기 (0) 2020.11.05