„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…”)
 
Nincs szerkesztési összefoglaló
 
(2 közbenső módosítás ugyanattól a szerkesztőtől nincs mutatva)
16. sor: 16. sor:
== Changelog ==
== Changelog ==
{| class="wikitable"
{| class="wikitable"
!Version
!Version<br>(lnxUser)
 
(lnxUser)
!Description
!Description
|-
|-
40. 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 );