Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Person
- {
- private $_name = null;
- function getName()
- {
- return $_name;
- }
- function setName($value)
- {
- $_name = $value;
- }
- }
- $myPerson = new Person();
- $myPerson->Name = 'Name1';
- print $myPerson->Name;
- ?>
Add Comment
Please, Sign In to add comment