I have a Greek text and I want to convert it to Hexadecimal code points without spaces. Just one big string of text.
This was exactly what I was looking for -> Unicode Hexadecimal code points for PHP but it doesn’t provide the actual code how he did it.
Based on the original code and the answer to this question: How to get code point number for a given character in a utf-8 string? I put together this function:
So:
Will output: