[PHP典型模塊與項目實戰大全]-第三章(PHP得知變數型態)
[PHP典型模塊與項目實戰大全]-第三章(PHP得知變數型態)
code2html:http://tohtml.com/
PHP得知變數型態
<?php
$rate=6;
var_dump($rate);//顯示變數型態
echo"<br>";
$_quoted="This sentence is quoted.";
var_dump($_quoted);//顯示變數型態
echo "<br>";
$Rate=7.25;
var_dump($Rate);//顯示變數型態
echo "<br>";
echo "rate=".$rate;
echo "<br>";
echo "Rate=".$Rate;
echo "<br>";
echo"_quoted =".$_quoted;
echo"<br>";
unset($_quoted);//回收
echo "_quoted =".$_quoted;//會出現錯誤提示
?>