开发者

php call_user_func_array parameter

The $current_user has the value:

New_User Object
(
    [data] => stdClass Object
        (
            [ID] => 1
            [user_login] => admin
        )

    [ID] => 1
    [caps] => Array
        (
        )
 )

The function call:

call_user_func_arr开发者_如何转开发ay( array( &$current_user, 'can_do' ), $args );

Which functions are called in this statement?


This will call the can_do method of $current_user object's class.

See the given examples in manual

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜