Core Function isVarString

From Sputnik Wiki
Jump to: navigation, search
isVarString( $variable )

Contents

Description

Checks if a variable is a string type.

Parameters

variable

The variable to check.

Return Value

Success: Returns true.

Failure: Returns false.

Remarks

None.

Example

$var1 = "Hello World";
println( "Is it?: " . isVarString($var1) );
// Alternative
println( $var1 is string  );
// Alternative
println( $var1 ~~ string  );
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox