Lines Matching refs:sizeof
2 Test sizeof() function : basic functionality - for non-scalar type(array)
5 /* Testing the sizeof() for non-scalar type(array) value
11 echo "*** Testing sizeof() : basic functionality ***\n";
18 echo "-- Testing sizeof() with integer array in default, COUNT_NORMAL, COUNT_RECURSIVE modes --\n";
20 var_dump( sizeof($int_array) );
23 var_dump( sizeof($int_array, COUNT_NORMAL) );
26 var_dump( sizeof($int_array, COUNT_RECURSIVE) );
29 echo "-- Testing sizeof() with string array in default, COUNT_NORMAL, COUNT_RECURSIVE modes --\n";
31 var_dump( sizeof($string_array) );
34 var_dump( sizeof($string_array, COUNT_NORMAL) );
37 var_dump( sizeof($string_array, COUNT_RECURSIVE) );
40 echo "-- Testing sizeof() with indexed array in default, COUNT_NORMAL, COUNT_RECURSIVE modes --\n";
42 var_dump( sizeof($indexed_array) );
45 var_dump( sizeof($indexed_array, COUNT_NORMAL) );
48 var_dump( sizeof($indexed_array, COUNT_RECURSIVE) );
51 echo "-- Testing sizeof() with mixed array in default, COUNT_NORMAL, COUNT_RECURSIVE modes --\n";
53 var_dump( sizeof($mixed_array) );
56 var_dump( sizeof($mixed_array, COUNT_NORMAL) );
59 var_dump( sizeof($mixed_array, COUNT_RECURSIVE) );
64 *** Testing sizeof() : basic functionality ***
65 -- Testing sizeof() with integer array in default, COUNT_NORMAL, COUNT_RECURSIVE modes --
72 -- Testing sizeof() with string array in default, COUNT_NORMAL, COUNT_RECURSIVE modes --
79 -- Testing sizeof() with indexed array in default, COUNT_NORMAL, COUNT_RECURSIVE modes --
86 -- Testing sizeof() with mixed array in default, COUNT_NORMAL, COUNT_RECURSIVE modes --