1--TEST-- 2is_scalar() function test 3--FILE-- 4<?php 5class foo {} 6var_dump (is_scalar (TRUE)); 7var_dump (is_scalar (1)); 8var_dump (is_scalar (1.0)); 9var_dump (is_scalar ("Hi!")); 10var_dump (is_scalar (NULL)); 11var_dump (is_scalar (array ())); 12var_dump (is_scalar (new foo())); 13var_dump (is_scalar (opendir('.'))); 14?> 15--EXPECT-- 16bool(true) 17bool(true) 18bool(true) 19bool(true) 20bool(false) 21bool(false) 22bool(false) 23bool(false) 24 25