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

Innen: IT documentation
(Új oldal, tartalma: „== Description == Object-oriented style<syntaxhighlight lang="php"> public lnxUser::existsGroup ( string | int $group ): bool </syntaxhighlight>Procedural style<syntaxh…”)
 
16. sor: 16. sor:
== Changelog ==
== Changelog ==
{| class="wikitable"
{| class="wikitable"
!Version
!Version<br>
 
(lnxUser)
(lnxUser)
!Description
!Description

A lap 2021. szeptember 19., 15:15-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 );