"quitar acentos string php" Code Answer's

You're definitely familiar with the best coding language CSS that developers use to develop their projects and they get all their queries like "quitar acentos string php" answered properly. Developers are finding an appropriate answer about quitar acentos string php related to the CSS coding language. By visiting this online portal developers get answers concerning CSS codes question like quitar acentos string php. Enter your desired code related query in the search bar and get every piece of information about CSS code related question on quitar acentos string php. 

quitar acentos string php

By sandersuarezsandersuarez on Oct 09, 2020
function eliminar_acentos($cadena){
		
		//Reemplazamos la A y a
		$cadena = str_replace(
		array('Á', 'À', 'Â', 'Ä', 'á', 'à', 'ä', 'â', 'ª'),
		array('A', 'A', 'A', 'A', 'a', 'a', 'a', 'a', 'a'),
		$cadena
		);
 
		//Reemplazamos la E y e
		$cadena = str_replace(
		array('É', 'È', 'Ê', 'Ë', 'é', 'è', 'ë', 'ê'),
		array('E', 'E', 'E', 'E', 'e', 'e', 'e', 'e'),
		$cadena );
 
		//Reemplazamos la I y i
		$cadena = str_replace(
		array('Í', 'Ì', 'Ï', 'Î', 'í', 'ì', 'ï', 'î'),
		array('I', 'I', 'I', 'I', 'i', 'i', 'i', 'i'),
		$cadena );
 
		//Reemplazamos la O y o
		$cadena = str_replace(
		array('Ó', 'Ò', 'Ö', 'Ô', 'ó', 'ò', 'ö', 'ô'),
		array('O', 'O', 'O', 'O', 'o', 'o', 'o', 'o'),
		$cadena );
 
		//Reemplazamos la U y u
		$cadena = str_replace(
		array('Ú', 'Ù', 'Û', 'Ü', 'ú', 'ù', 'ü', 'û'),
		array('U', 'U', 'U', 'U', 'u', 'u', 'u', 'u'),
		$cadena );
 
		//Reemplazamos la N, n, C y c
		$cadena = str_replace(
		array('Ñ', 'ñ', 'Ç', 'ç'),
		array('N', 'n', 'C', 'c'),
		$cadena
		);
		
		return $cadena;
	}

Source: codigosdeprogramacion.com

Add Comment

0

All those coders who are working on the CSS based application and are stuck on quitar acentos string php can get a collection of related answers to their query. Programmers need to enter their query on quitar acentos string php related to CSS code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about quitar acentos string php for the programmers working on CSS code while coding their module. Coders are also allowed to rectify already present answers of quitar acentos string php while working on the CSS language code. Developers can add up suggestions if they deem fit any other answer relating to "quitar acentos string php". Visit this developer's friendly online web community, CodeProZone, and get your queries like quitar acentos string php resolved professionally and stay updated to the latest CSS updates. 

CSS answers related to "quitar acentos string php"

View All CSS queries

CSS queries related to "quitar acentos string php"

Browse Other Code Languages

CodeProZone