Return to Snippet

Revision: 394
at July 12, 2006 12:13 by nicolaspar


Initial Code
function upper($str){
#	return preg_replace("/([a-z\xE0-\xFF])/e","chr(ord('\\1')-32)",$str);
	$mal = "abcdefghijklmnñopqrstuvwxyzáéíóúü";
	$bien = "ABCDEFGHIJKLMNÑOPQRSTUVWXYZÁÉÍÓÚÜ";
	return strtr($str,"$mal","$bien"); 

}

Initial URL

                                

Initial Description

                                

Initial Title
Php texto a mayusculas

Initial Tags

                                

Initial Language
PHP