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

Innen: IT documentation
(Új oldal, tartalma: „== Description == Object-oriented style<syntaxhighlight lang="php"> public lnxUser::existsUser ( string | int $user ): bool </syntaxhighlight>Procedural style<syntaxhig…”)
 
 
(4 közbenső módosítás ugyanattól a szerkesztőtől nincs mutatva)
4. sor: 4. sor:
</syntaxhighlight>Procedural style<syntaxhighlight lang="php">
</syntaxhighlight>Procedural style<syntaxhighlight lang="php">
lnxExistsUser ( string | int $user ): bool
lnxExistsUser ( string | int $user ): bool
</syntaxhighlight>Examine that the linux user is exists.
</syntaxhighlight>Examines whether the linux user exists.


== Parameters ==
== Parameters ==
13. sor: 13. sor:
== Return Values ==
== Return Values ==
Returns '''true''' if user exists, '''false''' otherwise.
Returns '''true''' if user exists, '''false''' otherwise.
== Changelog ==
{| class="wikitable"
!Version<br>(lnxUser)
!Description
|-
|1.00
|available
|}
== Examples ==
<syntaxhighlight lang="php">
$user = 'testUser';
# Examine if user exists
if ( lnxExistsUser( $user ) )
print( "'$user' user exists!" . PHP_EOL );
else
print( "'$user' user does not exists!" . PHP_EOL );
</syntaxhighlight>
[[Kategória:LnxUser]]
[[Kategória:LnxUser]]

A lap jelenlegi, 2021. szeptember 19., 09:10-kori változata

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