is_string() 函数用于检测变量是否是字符串。
PHP 版本要求: PHP 4, PHP 5, PHP 7高佣联盟 www.cgewang.com
bool is_string ( mixed $var )
参数说明:
如果指定变量为字符串,则返回 TRUE,否则返回 FALSE。
输出结果为:
这是一个字符串。 bool(true) bool(true) bool(false) bool(false)