Aiteee

by AiTeee on December 31st, 2009
No notes
Syntax: No syntax
Show lines - Hide lines - Show in textbox - Download
<html>
<head>
    <title>Probando</title>
</head>
 
<body>
 
<h1>Hola amigos</h1>
 
<p>Esto es una <b>prueba</b> para ver como funciona</p>
 
<?
function tiene_acentos($cadena){
    $buscar = "áéíóúüÁÉÍÓÚÜñÑ";
    for ($i=0; $i<strlen($cadena); $i++){
        if (strpos($buscar, substr($cadena,$i,1))!==false)
            return true;
    }
    return false;
}
?>
 
</body>
</html> 

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS