Skip to content

Instantly share code, notes, and snippets.

@sobstel
Created January 28, 2011 22:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sobstel/801098 to your computer and use it in GitHub Desktop.
Save sobstel/801098 to your computer and use it in GitHub Desktop.
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