1--TEST-- 2Test return type and value for expected input min() 3--FILE-- 4<?php 5/* 6 * proto mixed min(mixed arg1 [, mixed arg2 [, mixed ...]]) 7 * Function is implemented in ext/standard/array.c 8*/ 9 10echo "\n*** Testing sequences of numbers ***\n"; 11 12var_dump(min(2,1,2)); 13var_dump(min(-2,1,2)); 14var_dump(min(2.1,2.11,2.09)); 15var_dump(min("", "t", "b")); 16var_dump(min(false, true, false)); 17var_dump(min(true, false, true)); 18var_dump(min(1, true, false, true)); 19var_dump(min(0, true, false, true)); 20var_dump(min(0, 1, array(2,3))); 21 22echo "\nDone\n"; 23?> 24--EXPECT-- 25*** Testing sequences of numbers *** 26int(1) 27int(-2) 28float(2.09) 29string(0) "" 30bool(false) 31bool(false) 32bool(false) 33int(0) 34int(0) 35 36Done 37