Your Ad Here

Posted By

nicolaspar on 06/10/09


Tagged

strtoupper upper


Versions (?)

upper


 / Published in: PHP
 

  1. function upper($str){
  2. $mal = "abcdefghijklmnñopqrstuvwxyzáéíóúü";
  3. $bien = "ABCDEFGHIJKLMNÑOPQRSTUVWXYZÁÉÍÓÚÜ";
  4. return utf8_encode(strtr(utf8_decode($str),"$mal","$bien"));
  5. }

Report this snippet  

You need to login to post a comment.