Core Function isVarFunction

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "<pre> isVarFunction( $variable ) </pre> === Description === Checks if a variable is a function type. === Parameters === ==== variable ==== The variable to check. === Return...")
 
m (1 revision)
 
(One intermediate revision by one user not shown)

Latest revision as of 12:37, 14 June 2015

isVarFunction( $variable )

Contents

Description

Checks if a variable is a function type.

Parameters

variable

The variable to check.

Return Value

Success: Returns true.

Failure: Returns false.

Remarks

None.

Example

$var1 = Function(){};
println( "Is it?: " . isVarFunction($var1) );
// Alternative
println( $var1 is Func  );
// Alternative
println( $var1 ~~ Func  );
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox