|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-09-11 11:49 UTC] aidan@php.net
[2004-09-11 13:16 UTC] et@php.net
[2004-09-11 13:17 UTC] et@php.net
[2004-09-11 14:55 UTC] aidan@php.net
[2004-09-11 18:35 UTC] betz@php.net
[2004-09-12 10:11 UTC] reunion at pacific dot net dot au
[2004-09-12 10:14 UTC] reunion at pacific dot net dot au
[2004-09-12 11:02 UTC] aidan@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 13:00:01 2025 UTC |
Description: ------------ the current documentation for call_user_func and call_user_func_array does not mention that it can be used for calling instances as well... There is some information in one of the comments to call_user_func. Reproduce code: --------------- <?php class provider { function myfunction($x) { echo "burak was at $x\n"; } } $x= new provider(); call_user_func(array($x,'myfunction'),"a conference"); ?> Expected result: ---------------- burak was at a conference Actual result: -------------- The documentation does not mention that you can use call_user_func with instance methods.