He said he wanted to convert a given string to the '\x[0-9a-f]{2}' form (which javascript uses, not PHP), which is what both you and I gave working functions for.
As mentioned in my previous post, I was merely giving an example of an alternative, more modern way you could do it using PHP 5.3. I never stated it was the best way in terms of portability.
Every developer knows what language uses the '\x' representation, which is why my assumptions were made. In which case, what I said about needing one occurrence per character remains true. You can also see this from his initial example where he uses it on a per-character basis, implying it is a javascript string or similar.
Have a good day Lock Down, don't be so defensive in future, remember it was just a response.