echo ""; //输出标准HTML内容
echo "";
echo "";
echo "求最小值函数min的使用";
echo "";
echo "";
echo "";
echo "2,4,6,8,10中最小的数为:"; //输出内容
echo min(2,4,6,8,10); //对一组数值进行求最小值
echo "";
echo "0,happy中最小的数为:"; //输出内容
echo min(0,"happy"); //对0与字符串求最小值
echo "";
echo "happy,0中最小的数为:"; //输出内容
echo min("happy",0); //对字符串与0求最小值
echo "";
echo "happy,-10中最小的数为:"; //输出内容
echo min("happy",0); //对字符串与负数求最小值
echo "";
echo "array(2,5,8),array(2,6,9)中的最小值为:"; //输出内容
print_r(min(array(2,5,8),array(2,6,9))); //对两个数组求最小值
echo "";
echo "array(2,5,8),happy,100中的最小值为:"; //输出内容
echo(min(array(2,5,8),"happy",100)); //对数组、字符串及数值求最小值
echo "";
echo "";
?>