2010-06-27 25 views

回答

2

望着函数定义,你会发现:

/** 
* Pretty-print a variable to the browser (no krumo). 
* Displays only for users with proper permissions. If 
* you want a string returned instead of a print, use the 2nd param. 
*/ 
function dprint_r($input, $return = FALSE, $name = NULL, $function = 'print_r', $check= TRUE) { 
    if (user_access('access devel information')) { 
    // Snipped main function code ... 
    } 
} 

所以它只会产生输出与access devel information权限的用户。如果您将此权限分配给任何角色,则只有用户1才能看到输出。