LnxUser::existsUser

Innen: IT documentation

Description

Object-oriented style

public lnxUser::existsUser ( string | int $user ): bool

Procedural style

lnxExistsUser ( string | int $user ): bool

Examines whether the linux user exists.

Parameters

user
Name or User ID of linux user.

Return Values

Returns true if user exists, false otherwise.

Changelog

Version
(lnxUser)
Description
1.00 available

Examples

$user	= 'testUser';

# Examine if user exists

if ( lnxExistsUser( $user ) )
	
	print( "'$user' user exists!" . PHP_EOL );

else
	
	print( "'$user' user does not exists!" . PHP_EOL );