开发者

php call_user_func_array parameter

开发者 https://www.devze.com 2023-03-14 14:03 出处:网络
The $current_user has the value: New_User Object ( [data] => stdClass Object ( [ID] => 1 [user_login] => admin

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

精彩评论

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

关注公众号