Instantly share code, notes, and snippets.

Embed
What would you like to do?
PHP: function in method
<?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