Posted by Dikkie Dik on 09/18/05 00:02
Dikkie Dik wrote:
> ... Lots of other programming
> languages do this also. This means that you can compute 2 + '3' and get
> 5, because the string is converted to an integer. I personally hate
> this, because computing '3' + 2 gets '32'. Which can be converted in a
> later expression to 32!
I was thinking too much about java and Visual Basic. PHP doesn't want to
"add" strings at all, so '3' + 2 gets 5.
Navigation:
[Reply to this message]
|