Proper Way To Name Variables
- Forums
- General Errors
- Proper Way To Name Variables
i am new to php programming i took some c+ programming classes when i was in college but i forgot all that stuff [1785], Last Updated: Mon Jun 24, 2024
Clevermet
Mon Mar 29, 2010
1 Comments
515 Visits
i am new to php programming i took some c+ programming classes when i was in college but i forgot all that stuff
for example: Page Color
rule of thumb:
* Cannot use spaces,tabs (white spaces)
* Cannot use special characters (example #$%^*)
so these are some good ways to declare our variable:
page_color
page-color
PageColor
Bad ways:
pagecolor
page color
PAGECOLOR
https://www.webune.com/forums/proper-way-to-name-variables.html