PHP » PYTHON |
login |
register |
about
|
PYTHON call_user_method
is this article helpful?
|
Python replacement for PHP's call_user_method
[
edit
| history
]
class Foo(object): def bar(self): print 'hello world' foofoo = Foo() method_to_call = getattr(foofoo,'bar') method_to_call() >> 'hello world' call_user_method(PHP 4, PHP 5) call_user_method — Call a user method on an specific object [deprecated] DescriptionWarning
The call_user_method() function is deprecated as of PHP 4.1.0. Examples
Example #1 call_user_method() alternative
<?php
See Also
|
more
Recently updated
more
Most requested
more
Last requests
|