Voting

: four plus zero?
(Example: nine)

The Note You're Voting On

yannikh at gmeil dot com
19 years ago
I had to tackle a very interesting problem:

I wanted to replace all \xXX in a text by it's letters. Unfortunatelly XX were ASCII and not utf8. I solved my problem that way:
<?php preg_replace ('/\\\\x([0-9a-fA-F]{2})/e', "pack('H*',utf8_decode('\\1'))",$v); ?>

<< Back to user notes page

To Top