So if I wanted to increment an integer variable say “$year”, I would just
Now my point is this, when executing this operation in the C language, the
integer would become more positive, regardless of whether it was positive or
negative. So say -10 would become -9.
However, when I executed this operation in PHP4, a negative integer would
become more negative!!! So say -10 would become -11, the complete reverse
of what I experienced in the C language. So instead of writing the short
“$year++” I had to write “$year = $year + 1” and my code then executed
perfectly. I was dealing with years BC (Before Christ), which I assigned
as negative years and AD years which I of course assigned as positive years,
hence my discovery of this little anomaly.