get_current_user

(PHP 4, PHP 5, PHP 7, PHP 8)

get_current_user獲取當前 PHP 腳本所有者名稱

說明

get_current_user(): string

返回當前 PHP 腳本所有者名稱。

返回值

以字符串返回用戶名。

范例

示例 #1 get_current_user() 例子

<?php
echo 'Current script owner: ' get_current_user();
?>

以上例程的輸出類似于:

Current script owner: SYSTEM

參見