<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.strings.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.strcasecmp.php',
    1 => 'strcasecmp',
    2 => 'Confronto non sensibile alle maiuscole e sicuro con i dati binari',
  ),
  'up' => 
  array (
    0 => 'ref.strings.php',
    1 => 'String Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.str-word-count.php',
    1 => 'str_word_count',
  ),
  'next' => 
  array (
    0 => 'function.strchr.php',
    1 => 'strchr',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'it',
    'path' => 'reference/strings/functions/strcasecmp.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.strcasecmp" class="refentry">
   <div class="refnamediv">
    <h1 class="refname">strcasecmp</h1>
    <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">strcasecmp</span> &mdash; <span class="dc-title">
     Confronto non sensibile alle maiuscole e sicuro con i dati binari
    </span></p>

   </div>
   <div class="refsect1 unknown-1381" id="refsect1-function.strcasecmp-unknown-1381">
    <h3 class="title">Descrizione</h3>
     <div class="methodsynopsis dc-description">
      <span class="methodname"><strong>strcasecmp</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$str1</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$str2</code></span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

    <p class="para rdfs-comment">
     Restituisce &lt; 0 se <code class="parameter">str1</code> è minore di
     <code class="parameter">str2</code>; &gt; 0 se <code class="parameter">str1</code>
     è maggiore di <code class="parameter">str2</code>, e 0 se
     sono uguali.
     <div class="example" id="example-1">
      <p><strong>Example #1 Esempio di uso di <span class="function"><strong>strcasecmp()</strong></span></strong></p>
      <div class="example-contents">
<div class="annotation-interactive phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$var1 </span><span style="color: #007700">= </span><span style="color: #DD0000">"Hello"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$var2 </span><span style="color: #007700">= </span><span style="color: #DD0000">"hello"</span><span style="color: #007700">;<br />if (</span><span style="color: #0000BB">strcasecmp</span><span style="color: #007700">(</span><span style="color: #0000BB">$var1</span><span style="color: #007700">, </span><span style="color: #0000BB">$var2</span><span style="color: #007700">) == </span><span style="color: #0000BB">0</span><span style="color: #007700">) {<br />    echo </span><span style="color: #DD0000">'$var1 is equal to $var2 in a case-insensitive string comparison'</span><span style="color: #007700">;<br />}<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
      </div>

     </div>
    </p>
    <p class="simpara">
    Vedere anche
     <span class="function"><strong>ereg()</strong></span>,
     <span class="function"><a href="function.strcmp.php" class="function">strcmp()</a></span>,
     <span class="function"><a href="function.substr.php" class="function">substr()</a></span>,
     <span class="function"><a href="function.stristr.php" class="function">stristr()</a></span>,
     <span class="function"><a href="function.strncasecmp.php" class="function">strncasecmp()</a></span> e
     <span class="function"><a href="function.strstr.php" class="function">strstr()</a></span>.
    </p>
   </div>

  </div><?php manual_footer($setup); ?>