+ 4

What's the main reason why you can not use number to start a variable?

11th Jun 2016, 10:36 PM
Emmanuel Uzomah
Emmanuel Uzomah - avatar
6 Réponses
+ 1
Sangpach
11th Jun 2016, 11:44 PM
แสงทอง ภาคำ
แสงทอง ภาคำ - avatar
+ 1
I think it's just the rule of variables and that how php was written, numbers can come within alphabets but not at the beginning which is why a variable can contain Alphabets, numbers and underscore_
11th Jun 2016, 11:52 PM
Emmanuel Uzomah
Emmanuel Uzomah - avatar
+ 1
it may be to make the compiler not confused between numbers (e.g for mathematical operations) & variables or anything else ....
12th Jun 2016, 1:54 AM
Ahmad Samy
Ahmad Samy - avatar
0
I think bcz of override
29th Jun 2016, 7:37 PM
mane a
mane a - avatar
0
As per php language rules
22nd Aug 2016, 3:29 PM
Manik Kore
Manik Kore - avatar
- 1
maybe cause they might get confused with colors.
13th Jun 2016, 6:58 AM
DeWayne Barton