Return to Snippet

Revision: 395
at July 12, 2006 12:14 by nicolaspar


Initial Code
function lower($str){
	#return  preg_replace("/([A-Z\xC0-\xDF])/e","chr(ord('\\1')+32)",$str);
	$bien = "abcdefghijklmnñopqrstuvwxyzáéíóúü";
	$mal = "ABCDEFGHIJKLMNÑOPQRSTUVWXYZÁÉÍÓÚÜ";
	return strtr($str,"$mal","$bien"); 
}

Initial URL

                                

Initial Description

                                

Initial Title
Php texto a minusculas

Initial Tags

                                

Initial Language
PHP