Mayusculas (uppercase) para caracteres no ASCII al igual que strtoupper


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. function strtoupper2($str){
  2. return strtr($str,
  3. "abcdefghijklmnopqrstuvwxyz".
  4. "\x9C\x9A\xE0\xE1\xE2\xE3".
  5. "\xE4\xE5\xE6\xE7\xE8\xE9".
  6. "\xEA\xEB\xEC\xED\xEE\xEF".
  7. "\xF0\xF1\xF2\xF3\xF4\xF5".
  8. "\xF6\xF8\xF9\xFA\xFB\xFC".
  9. "\xFD\xFE\xFF",
  10. "ABCDEFGHIJKLMNOPQRSTUVWXYZ".
  11. "\x8C\x8A\xC0\xC1\xC2\xC3\xC4".
  12. "\xC5\xC6\xC7\xC8\xC9\xCA\xCB".
  13. "\xCC\xCD\xCE\xCF\xD0\xD1\xD2".
  14. "\xD3\xD4\xD5\xD6\xD8\xD9\xDA".
  15. "\xDB\xDC\xDD\xDE\x9F");
  16. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.