java程序员学php — 1. 动态数据类型

1. php里的数据类型是动态的,不要求在使用变量之前声明变量,如

   $var = 0;

2. php里变量的数据类型可在运行时变换,比如,你可以先后如下赋值:

   $var = 5;

   $var = ‘abc’;

   不会报错

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.