1<?php
2 class person {
3 var $name;
4 function __construct($persons_name) {
5 $this->name = $persons_name;
6 }
7
8 function set_name($new_name) {
9 $this->name = $new_name;
10 }
11
12 function get_name() {
13 return $this->name;
14 }
15
16 }
17?>