The type of variable is auto-defined by assigning a value to it? because in java, we have to declare the type of variable before assigning value | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

The type of variable is auto-defined by assigning a value to it? because in java, we have to declare the type of variable before assigning value

6th Mar 2016, 4:07 PM
ThisTNTSquid
ThisTNTSquid - avatar
2 Answers
+ 3
PHP is Loosely typed - it will implicitly change the type of a variable as needed, depending on the operation performed on its value - as opposed to stongly typed languages (C or Java) where variables can only contain one type of data throughout their existance.
28th Apr 2016, 8:26 PM
Diana Margarit
Diana Margarit - avatar
0
??
27th Jun 2016, 11:51 AM
jackeline ayala fuentes