Browse posteets
About
Contact us
Log In
Register
View: Call a user function given by the first parameter in PHP
Call a user function given by the first parameter in PHP
2 months ago
by
jemini_fr
and saved by
1 other
// Call a class method outside the class
call_user_func
(
array
(
$myclass
,
$mymethod
)
,
$args
)
;
// Call a class method inside the class
call_user_func
(
array
(
$this
,
$mymethod
)
,
$args
)
;
//or
$this
->
{
$mymethod
}
(
$args
)
;
call_user_func
method
php
View source
0 comment
about "Call a user function given by the first parameter in PHP"
Tags
call_user_func
method
php
0 comment about "Call a user function given by the first parameter in PHP"