Bug in PHP?/Unknown output?
View Single Post
04-25-2009, 04:03 PM
Join Date: Sep 2007
Originally Posted by
But i thinking this is a bug...
In programming, before you go yelling "bug!" you should know how it happened, why its a bug, and how it could be fixed. Otherwise you do not understand the issue and are therefore not qualified to assess if it is indeed a bug. At this point you simply do not understand the nature of the code, which may be because it one of the messiest pieces of code I've seen in a
long time. I can hardly read that.....
The reason you are getting these weird characters is because you are making bad conversions to a string. Since all data boils down to 0's and 1's, all data
be applied to all other data; you just won't get anything nice looking. I see you outputting the following:
2. Something typecasted to a string
4. Booleans (which are integers)
5. Strings with integer operations applied to them
With all that meshed into one output statement, I find it amazing you are surprised at the unreadable output.
View Public Profile
Send a private message to Village Idiot
Find More Posts by Village Idiot