Created
November 11, 2014 05:06
-
-
Save eddiezane/6f0a6aafb79b2b5f1691 to your computer and use it in GitHub Desktop.
This file contains 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 MyClass { | |
public $myVar = "Hello world\n"; | |
public function sayHello() { | |
echo $this->myVar; | |
} | |
} | |
$instance = new MyClass(); | |
$instance->sayHello(); | |
// Hello world |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment