Home  >  Article  >  Backend Development  >  java软件工程师学php - 1. 动态数据类型

java软件工程师学php - 1. 动态数据类型

WBOY
WBOYOriginal
2016-06-13 13:05:36778browse

java程序员学php -- 1. 动态数据类型
1. php里的数据类型是动态的,不要求在使用变量之前声明变量,如
   $var = 0;

2. php里变量的数据类型可在运行时变换,比如,你可以先后如下赋值:
   $var = 5;
   $var = 'abc';
   不会报错

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn