PHP Notice: Undefined variable: var_string in index.php on line 4
PHP Notice: Undefined variable: n in index.php on line 7
PHP Notice: Undefined variable: f in index.php on line 10
PHP Notice: Undefined variable: var_array in index.php on line 13
626144
176
144
144
144
PHP Notice: Undefined variable: n in index.php on line 7
PHP Notice: Undefined variable: f in index.php on line 10
PHP Notice: Undefined variable: var_array in index.php on line 13
626144
176
144
144
144
2022-07-06
最贊回答 / weixin_慕神6279489
定義變量是向服務器申請一個空間用來存放數據,這個在之前3-2那一節里面有說到。像慕課在外面定義那樣,他定義的$info變量并沒有賦值,只是先向服務器申請了一個存放數據的空間,然后再在后面把數據放進這個空間里面。所以在這里前后定義并不會對這段代碼的整體產生什么影響,效果是一樣的。
2022-03-23