Created
April 26, 2014 14:44
-
-
Save thinkingmedia/11321912 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
class main | |
{ | |
public $nothing = 'some text'; | |
public static $variable = "new variable"; | |
public static function doSomething($main) | |
{ | |
echo "Do something"; | |
echo "<br>"; | |
echo $main->nothing; | |
} | |
public function nothing() | |
{ | |
echo "Nothing happend here"; | |
echo self::$variable; | |
echo $this->nothing; | |
} | |
} | |
$var = new main(); | |
$var->nothing(); | |
main::doSomething($var); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment