Core Function isVarSocket

From Sputnik Wiki
Revision as of 12:37, 14 June 2015 by UberFoX (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
isVarSocket( $variable )

Contents

Description

Check if a variable holds a Socket object.

Parameters

variable

The variable to check.

Return Value

Success: Returns true.

Failure: Returns false.

Remarks

None.

Example

$var1 = SocketCreate("Stream", "TCP");
println( "Is it?: " . isVarSocket($var1) );
// Alternative
println( $var1 is Socket  );
// Alternative
println( $var1 ~~ Socket  );
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox