PHP中var用或不用的区别

var 用于PHP4,PHP5中不推荐使用。

PHP5中使用 publicprotected 等关键字来代替 var

你可能感兴趣的:(PHP中var用或不用的区别)