Core Function isVarSocket
From Sputnik Wiki
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 );