Core Function isVarFunction

From Sputnik Wiki
Jump to: navigation, search
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