-
[객체지향 PHP]1.클래스 생성서버/PHP 2020. 11. 5. 01:09
<?php class NewClass { //properties and Methods goes here public $info ="this is some info"; } $object =new NewClass; var_dump($object); ?>
var_dump();
는 해당객체의 구조를 보여준다.
'서버 > PHP' 카테고리의 다른 글
[객체지향PHP]6.include (0) 2020.11.05 [객체지향PHP]5.Static ::(Scope Resolution Operator) (0) 2020.11.05 [객체지향PHP]4.객체 지우기 (0) 2020.11.05 [객체지향PHP]3.생성자 (0) 2020.11.05 [객체지향PHP]2.메서드와 상속 (0) 2020.11.05