„LnxUser::existsGroup” változatai közötti eltérés

Innen: IT documentation
Nincs szerkesztési összefoglaló
 
38. sor: 38. sor:


</syntaxhighlight>
</syntaxhighlight>
[[Kategória:LnxUser]]

A lap jelenlegi, 2021. szeptember 19., 15:22-kori változata

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 );