<?php $string = 'something %2A something %3C something';$string = preg_replace_callback('~%([A-Z0-9]{2})~', function ($m) {return chr(hexdec($m[1]));}, $string); print $string;
Standard input is empty
something * something < something
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!