PHP function get_current_user()

Availability in PHP 4.0

Gets the name of the owner of the current PHP script

Parameters

The function has no input parameters.

Return values

string

The username as a string.

Other resources

Official documentation for get-current-user

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.