I’m using + sign to add up 2 MD5 hashes like so:
md5('string1') + md5('string2')
now if I did this with strings, like so:
'string1' + 'string2'
…PHPp would give me 0 as a return value. However, with MD5 hashes, it always returns a numeric value, for which I cannot determine any origin.
It will depend on the hash values generated by your strings. When adding “string” values, PHP’s behaviour (and it is well documented) is to take any leading numeric characters and treat them as an integer… if there are no leading numerics, then it will be treated as 0.
So
With your data
giving
Now why are you trying to add hash values?