2010-06-27 23 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才能看到輸出。