PHP » GoLang |
login |
register |
about
|
is_scalar(PHP 4 >= 4.0.5, PHP 5, PHP 7) is_scalar — Finds whether a variable is a scalar DescriptionFinds whether the given variable is a scalar. Scalar variables are those containing an integer, float, string or boolean. Types array, object and resource are not scalar.
Parameters
Return Values
Returns Examples
Example #1 is_scalar() example
<?php The above example will output: 3.1416 array(3) { [0]=> string(10) "hemoglobin" [1]=> string(20) "cytochrome c oxidase" [2]=> string(10) "ferredoxin" } See Also
|
more
Recently updated
more
Most requested
more
Last requests
|