CHR() to ascii


SUBMITTED BY: Guest

DATE: May 28, 2013, 2:22 p.m.

FORMAT: Text only

SIZE: 1.5 kB

HITS: 470930

  1. function chr_ascii($a){
  2. $a=str_replace("CHR(58)",":",$a);
  3. $a=str_replace("CHR(59)",";",$a);
  4. $a=str_replace("CHR(60)","<",$a);
  5. $a=str_replace("CHR(61)","=",$a);
  6. $a=str_replace("CHR(62)",">",$a);
  7. $a=str_replace("CHR(63)","?",$a);
  8. $a=str_replace("CHR(64)","@",$a);
  9. $a=str_replace("CHR(95)" ,"_",$a);
  10. $a=str_replace("CHR(97)","a",$a);
  11. $a=str_replace("CHR(98)","b",$a);
  12. $a=str_replace("CHR(99)","c",$a);
  13. $a=str_replace("CHR(100)","d",$a);
  14. $a=str_replace("CHR(101)","e",$a);
  15. $a=str_replace("CHR(102)","f",$a);
  16. $a=str_replace("CHR(103)","g",$a);
  17. $a=str_replace("CHR(104)","h",$a);
  18. $a=str_replace("CHR(105)","i",$a);
  19. $a=str_replace("CHR(106)","j",$a);
  20. $a=str_replace("CHR(107)","k",$a);
  21. $a=str_replace("CHR(108)","l",$a);
  22. $a=str_replace("CHR(109)","m",$a);
  23. $a=str_replace("CHR(110)","n",$a);
  24. $a=str_replace("CHR(111)","o",$a);
  25. $a=str_replace("CHR(112)","p",$a);
  26. $a=str_replace("CHR(113)","q",$a);
  27. $a=str_replace("CHR(114)","r",$a);
  28. $a=str_replace("CHR(115)","s",$a);
  29. $a=str_replace("CHR(116)","t",$a);
  30. $a=str_replace("CHR(117)","u",$a);
  31. $a=str_replace("CHR(118)","v",$a);
  32. $a=str_replace("CHR(119)","w",$a);
  33. $a=str_replace("CHR(120)","x",$a);
  34. $a=str_replace("CHR(121)","y",$a);
  35. $a=str_replace("CHR(122)","z",$a);
  36. return $a;
  37. }

comments powered by Disqus