【php开源代码栏目提醒】:网学会员为需要php开源代码的朋友们搜集整理了integer.php相关资料,希望对各位网友有所帮助!
<html>
<head>
<title>整型数据类型</title>
</head>
<body>
<h2>整型数据类型的应用</h2>
<?php $int=10; $int_o=012; $int_h=0xA;
$float=10.0;
echo "变量\$int的值是:".$int."<br>";;
echo "变量\$int_o的值是:".$int_o."<br>";;
echo "变量\$int_h的值是:".$int_h."<br>";
echo "变量\$int的类型是:".gettype($int)."<br>";
echo "变量\$float的类型是:".gettype($float)."<br>";
$int=dechex($int);
echo "变量\$int被转化位十六进制的值是:".$int."<br>";
?>
</body>
<html>