Created
January 28, 2011 22:05
-
-
Save sobstel/801098 to your computer and use it in GitHub Desktop.
PHP: function in method
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 FooClass { | |
public function foo_method() { | |
function foo_func() { | |
echo "it works, really"; | |
} | |
} | |
} | |
$foo = new FooClass; | |
$foo->foo_method().foo_func(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment