php Programming Glossary: sayhi
Dynamically Create Instance Method in PHP http://stackoverflow.com/questions/3231365/dynamically-create-instance-method-in-php like so class Foo function __construct code 'print hi ' sayHi create_function '' code print sayHi prints lambda_2 print sayHi.. code 'print hi ' sayHi create_function '' code print sayHi prints lambda_2 print sayHi prints 'hi' this sayHi sayHi f new.. create_function '' code print sayHi prints lambda_2 print sayHi prints 'hi' this sayHi sayHi f new Foo f sayHi Fatal error Call..
php static function http://stackoverflow.com/questions/902909/php-static-function assume that I have a class class test public function sayHi echo 'hi' if I do test sayHi it works without a problem. class.. class test public function sayHi echo 'hi' if I do test sayHi it works without a problem. class test public static function.. works without a problem. class test public static function sayHi echo 'hi' test sayHi works as well. What are the differences..
|