Join Up!
104886 members and counting!

 
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links 
search for in the  
previousstr_word_countstrchrnext
Last updated: Tue, 29 Oct 2002
view the printer friendly version or the printer friendly version with notes or change language to Czech | German

strcasecmp

(PHP 3>= 3.0.2, PHP 4 )

strcasecmp --  Comparación de cadenas insensible a mayúsculas y minúsculas y segura en modo binario

Descripción

int strcasecmp ( string cad1, string cad2)

Devuelve < 0 si cad1 es menor que cad2; > 0 si cad1 es mayor que cad2, y 0 si son iguales.

Ejemplo 1. Ejemplo de strcasecmp()

$var1 = "Hello";
$var2 = "hello";
if (!strcasecmp ($var1, $var2)) {
    echo '$var1 es igual a $var2 en una comparación sin tener en cuenta '
     .'mayúsculas o minúsculas';
}

Vea también ereg(), strcmp(), substr(), stristr(), y strstr().

User Contributed Notes
strcasecmp
add a note about notes
There are no user contributed notes for this page.
previousstr_word_countstrchrnext
Last updated: Tue, 29 Oct 2002
Copyright © 2001, 2002 The PHP Group
All rights reserved.
This mirror generously provided by: http://phpbuilder.com/
Last updated: Thu Oct 31 18:34:28 2002 EST