<?php $originalString = "Pritom K Mondal, 0154785"; function ord2($s2) { return "&#" . ord($s2) . ";"; } echo preg_replace("/[^a-zA-Z0-9]/e", "ord2('\\0')", $originalString) ?>
Pritom K Mondal, 0154785
No comments:
Post a Comment