因为是一种动态的、弱类型语言,PHP非常灵活。
It is flexible by being a dynamic and weakly typed language.
极端情况下,弱类型语言(例如assembler)允许将任意数据类型赋给另一种类型(不管这种赋值是否有意义)。
At the extreme endpoints, a weakly typed language such as Assembler lets you assign any data type to any other (whether the assignment makes sense or not).
静态类型的语言既可以有强类型,也可以有弱类型;而动态类型系统通常是强类型的,但也不完全是。
Statically typed languages can have strong or weak typing; dynamically typed systems are usually, though not exclusively, strongly typed.
对于那些习惯于强类型语言的人来说,这可能像是一种阻碍,但是这种弱类型耦合使Ruby语言能够实现某些更强大的特性。
While this may seem like a hindrance to those accustomed to strongly typed languages, this loose-type coupling enables some of the more powerful features of the Ruby language.
实际上,在类型检查的下面,不同的语言会对应着,从弱到强的一个定型范围。
And in fact, under type checking, different languages sometimes fall on a spectrum from weak to strong typing.
实际上,在类型检查的下面,不同的语言会对应着,从弱到强的一个定型范围。
And in fact, under type checking, different languages sometimes fall on a spectrum from weak to strong typing.
应用推荐