3-1 變數
一、自訂變數
$a=123; //$a → integer整數 $a=12.3; //$a → double浮點數 $a="123"; //$a → string字串 $a=array(1,2,3); //$a → array陣列
$a = "2年級";
$b = "3年級"
$c = $a + $b;二、外部變數:
三、來自表單
四、環境變數
五、 PHP變數範圍
Last updated
Was this helpful?