Description
This conditional function checks if the given variable is a string type. This is a boolean function, meaning it returns either TRUE or FALSE.How to Use
<?php is_string( $variable ); ?>
Return Values
(boolean) True on success, false on failure.Examples
if(is_string("2012")){ echo "this is a string";
}else{ echo "this is not a string"; }
// Outputs: this is a string
No comments:
Post a Comment