Core Function isVarSocket
From Sputnik Wiki
(Difference between revisions)
UberFoX (Talk | contribs)
(Created page with "<pre> isVarSocket( $variable ) </pre> === Description === Check if a variable holds a Socket object. === Parameters === ==== variable ==== The variable to check. === Return...")
Newer edit →
(Created page with "<pre> isVarSocket( $variable ) </pre> === Description === Check if a variable holds a Socket object. === Parameters === ==== variable ==== The variable to check. === Return...")
Newer edit →
Revision as of 21:36, 26 April 2012
isVarSocket( $variable )
Contents |
Description
Check if a variable holds a Socket object.
Parameters
variable
The variable to check.
Return Value
Success: Returns 1.
Failure: Returns 0.
Remarks
None.
Example
$var1 = "check me"; println( "Is it?: " . isVarSocket($var1) );