PHP - Worth including the data type in the variable name?

Koiuy

New Member
I'm trying to write my code as maintainable and easy to understand as possible, and I thought of including the type of data a variable holds in its name.e.g:\[code\]$intCurrentLine = 1; instead of $currentLine = 1;$strUser = 'blah'; instead of $user = 'blah';\[/code\]I don't think it is really necessary in the above example, but may it be helpful in some cases?
  • Could this make my code more understandable?
  • Should I actually use this or stick with "normal" variable names?
  • Do you know scripts where this is used?
best regards,lamas
 
Back
Top