is_string()
<?php
$values = array(false, true, null, 'abc', '23', 23, '23.5', 23.5, '', ' ', '0', 0);
foreach ($values as $value) {
    echo "is_string(";
    var_export($value);
    echo ") = ";
    echo var_dump(is_string($value));
}
?>
by გიორგი ბაკაშვილი
4 years ago
PHP
Variable Handling
PHP official doc
2
Pro tip: use ```triple backticks around text``` to write in code fences