COMPUTER LEARNING CENTER
WWW.HUUKHANG.COM
<HEAD>
<TITLE>::Welcome to PHP</TITLE>
</HEAD>
<BODY>
<h4>Constant</h4>
<?php
define("pi",3.14);
//define("hrs",8);
function Test()
{
if(defined("pi"))
echo
"<br>pi:=".pi;
else
echo "<br>pi not defined";
if(defined("hrs"))
echo
"<br>hrs:=".hrs;
else
echo "<br>hrs not defined";
}
Test();
?>
</BODY>
</HTML>
5.
KEÁT LUAÄN
Trong baøi naøy, chuùng ta tìm hieåu caùch khai baùo haèng, bieán vaø söû duïng haèng bieán. Ngoaøi
ra, baïn cuõng tìm hieåu caùch chuyeån ñoåi kieåu döõ lieäu, kieåm tra kieåu döõ lieäu, taàm vöïec cuûa
bieán.
Giaùo vieân: Phaïm Höõu Khang