I have been pulling my hair out today.
I'm making a system that uses some encryption. I have a 12 character string, and I encrypt it, pass it about a bit and then decrypt it.
When I look the the unencrypred and the destructed fields, they look the same, an if == fails.
Here's the result of a var_dump:
It looks like it's saying one string is 12 characters long and the other is 16!!!
The first one is the decrypted version, and the shorter? one is the original.