is_scalar
PHP 4 >= 4.0.5, PHP 5, PHP 7, PHP 8
is_scalar - Finds whether a variable is a scalar
Code Examples
Example #1 is_scalar example
Result: 3.1416
array(3) {
[0]=>
string(10) "hemoglobin"
[1]=>
string(20) "cytochrome c oxidase"
[2]=>
string(10) "ferredoxin"
}