is_scalar Finds whether a variable is a scalar &reftitle.description; boolis_scalar mixedvar Finds 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. is_scalar does not consider resource type values to be scalar as resources are abstract datatypes which are currently based on integers. This implementation detail should not be relied upon, as it may change. &reftitle.parameters; var The variable being evaluated. &reftitle.returnvalues; Returns &true; if var is a scalar &false; otherwise. &reftitle.examples; <function>is_scalar</function> example ]]> &example.outputs; string(10) "hemoglobin" [1]=> string(20) "cytochrome c oxidase" [2]=> string(10) "ferredoxin" } ]]> &reftitle.seealso; is_float is_int is_numeric is_real is_string is_bool is_object is_array