★ wanayoo — archive 1999 http://fr.php.net/manual/fr/function.strcasecmp.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to Chaînes
Quick Reference
English version of this pageGerman version of this pageJapanese version of this page
Italian version of this pageFrench version of this pageHungarian version of this page
Spanish version of this pageDutch version of this pageBrazilian Portuguese version of this page
Korean version of this pageCzech version of this page
Chaînes
* AddCSlashes
* AddSlashes
* bin2hex
* Chop
* Chr
* chunk_split
* convert_cyr_string
* count_chars
* crc32
* crypt
* echo
* explode
* get_html_translation_table
* get_meta_tags
* hebrev
* hebrevc
* htmlentities
* htmlspecialchars
* implode
* join
* levenshtein
* localeconv
* ltrim
* md5
* Metaphone
* nl2br
* Ord
* parse_str
* print
* printf
* quoted_printable_decode
* QuoteMeta
* rtrim
* sscanf
* setlocale
* similar_text
* soundex
* sprintf
* strncasecmp
* strcasecmp
* strchr
* strcmp
* strcoll
* strcspn
* strip_tags
* StripCSlashes
* StripSlashes
* stristr
* strlen
* strnatcmp
* strnatcasecmp
* strncmp
* str_pad
* strpos
* strrchr
* str_repeat
* strrev
* strrpos
* strspn
* strstr
* strtok
* strtolower
* strtoupper
* str_replace
* strtr
* substr
* substr_count
* substr_replace
* trim
* ucfirst
* ucwords
* wordwrap

  Thanks to:
 Chek.com
 easyDNS
 VA Linux Systems

  Related sites:
Apache
MySQL
PostgreSQL
Zend Tech.

  Community:
LinuxFund.org
OSDN
Manual: strcasecmp
View the source code for this pageSearch the site



Previous page
 strncasecmp
 Updated
Sun, 11 Feb 2001
strchr 
Next page


strcasecmp

(PHP 3>= 3.0.2, PHP 4 )

strcasecmp --  Comparaison binaire de chaînes, insensible à la casse.

Description

int strcasecmp (string str1, string str2)

Retourne < 0 si str1 est plus petit que str2; > 0 si str1 est plus grand que str2, et 0 si ils sont égaux.

Exemple 1. Exemple avec strcasecmp()


<?php
$var1 = "Bonjour";
$var2 = "bonjour";
if ( !strcasecmp($var1,$var2) ) {
    echo '$var1 est égal à $var2, à la casse près.';
}
?>
      

Voir aussi ereg(), strcmp(), substr(), stristr(), strncasecmp() et strstr().


 About Notes


Previous page
 strncasecmp
 Updated
Sun, 11 Feb 2001
strchr 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
France
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.