mirror of
https://github.com/php/doc-de.git
synced 2026-03-29 10:42:12 +02:00
git-svn-id: https://svn.php.net/repository/phpdoc/de/trunk@212615 c90b9560-bf6c-de11-be94-00142212c4b1
71 lines
2.1 KiB
XML
71 lines
2.1 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.4 $ -->
|
|
<!-- EN-Revision: 1.5 Maintainer: sammywg Status: ready -->
|
|
<!-- splitted from ./de/functions/strings.xml, last change in rev 1.2 -->
|
|
<refentry id="function.strcasecmp">
|
|
<refnamediv>
|
|
<refname>strcasecmp</refname>
|
|
<refpurpose>Binärer Vergleich von Zeichenketten ohne Unterscheidung
|
|
der Groß- und Kleinschreibung</refpurpose>
|
|
</refnamediv>
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>int</type><methodname>strcasecmp</methodname>
|
|
<methodparam><type>string</type><parameter>str1</parameter></methodparam>
|
|
<methodparam><type>string</type><parameter>str2</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Ist <parameter>str1</parameter> kleiner als
|
|
<parameter>str2</parameter> wird < 0 zurückgegeben, ist
|
|
<parameter>str1</parameter> größer als <parameter>str2</parameter> > 0,
|
|
und bei Gleichheit gibt die Funktion 0 zurück.
|
|
<example>
|
|
<title><function>strcasecmp</function>-Beispiel:</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$var1 = "Hallo";
|
|
$var2 = "hallo";
|
|
if (strcasecmp($var1, $var2) == 0) {
|
|
echo '$var1 ist gleich $var2 bei einem String-Vergleich'
|
|
. 'ohne Berücksichtigung von Groß- und Kleinschreibung';
|
|
}
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
<simpara>
|
|
Siehe auch
|
|
<function>ereg</function>,
|
|
<function>strcmp</function>,
|
|
<function>substr</function>,
|
|
<function>stristr</function>,
|
|
<function>strncasecmp</function> und
|
|
<function>strstr</function>.
|
|
</simpara>
|
|
</refsect1>
|
|
</refentry>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|