LnxUser::existsGroup

Innen: IT documentation

Description

Object-oriented style

public lnxUser::existsGroup ( string | int $group ): bool

Procedural style

lnxExistsGroup ( string | int $group ): bool

Examines whether the linux group exists.

Parameters

group
Name or Group ID of linux group.

Return Values

Returns true if group exists, false otherwise.

Changelog

Version
(lnxUser)
Description
1.00 available

Examples

$group	= 'testGroup';

# Examine if group exists

if ( lnxExistsGroup( $group ) )
	
	print( "'$group' group exists!" . PHP_EOL );

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