name=$name; $this->age=$age; $this->room=$room; } function SetName($name){$this->name=$name;} // 멤버함수 function PutInfo(){ echo "이름:".
$this->name.""; // $this 는 자기자신을 나타낸다. echo "나이:".
$this->age.""; echo "교실:".
$this->room.""; } } // 클래스 상속.
상속은 오직 하나만 가능. Class ExClass extends MyClass{ // 오버라이딩 function ...
#IT
#PHP
#개발
#노가다
#업무노트
#코딩
#프로그래밍
원문링크 : PHP class