Created
August 22, 2016 15:36
-
-
Save helloanoop/28fc43b4e4af47a17be2cf5feeb33dc7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Animal { | |
| public function setName($name){ | |
| $this->name = $name; | |
| } | |
| public function getName(){ | |
| return $this->name; | |
| } | |
| } | |
| $animal = new Animal(); | |
| $animal->setName('Lioness Majestic'); | |
| echo $animal->getName(); | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment