+ 3
I wonder. Since we don't need to declare a variable, does this mean that a variable which first I assign a numeric value can be assigned later with, for example, string value?
8 Respostas
+ 1
yes
+ 1
Dending on how you use it PHP will rec!at the variable automatically. So a string of "3" might end up becoming a number if used in an assignment.
+ 1
Yess Exactly True
0
yes
0
Yes!!
0
yes, you can assign the variable later in your program.
0
ye
0
Probably not recommended though. Imag8ne how confusing a large project would get with variable types changing all the time.