PHP is a "loosely typed language" with very powerful conversion capabilities.
This can be both a good and a bad thing. It can make it very easy to work with variables, but it can also cause errors, when people are not familiar with how specific variables will be converted and expect different results.
For people used to "strongly typed languages" like C, where every variable has to be defined as a specific type, this can be somewhat strange.
If you increment a pre-defined string containing an x number of characters, the last character in the string will be incremented and effectively changed into the next character in the alphabet.
A variable that has been defined as "" or '' would be considered NULL and/or 0, which will be incremented into 1.
I recommend keeping close eye on what types your variables are tho, not relying on PHP's default conversions to much. They can change and mess everything up.
Quote:
Originally Posted by code green
And moderators, what has happened to the forum PHP tags?
|
There were some issues with the highlighting software being used so it was removed. I do believe they are currently looking for replacements tho.