Visually same string gives different var_dumps in php
问题 UPDATE: Anwer is here PHP unserialize fails with non-encoded characters? I'm trying to match objects with in_array. This works fine except for the object with this string as a property. Visually they are the same, but when I do a var_dump PHP sees different lengths. var_dump results: string(26) "Waar zijn mijn centjes👼" string(31) "Waar zijn mijn centjes👼" What can be the cause? Some ascii value I don't know of? 回答1: Let's look at the hex dump of your strings: