1
0
mirror of https://github.com/php/doc-de.git synced 2026-04-26 08:28:03 +02:00
Files
archived-doc-de/reference/strings/functions/substr-count.xml
T
Thomas Schoefbeck de7f0a31ee sync to en
git-svn-id: https://svn.php.net/repository/phpdoc/de/trunk@113063 c90b9560-bf6c-de11-be94-00142212c4b1
2003-01-22 22:02:13 +00:00

66 lines
1.8 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.4 $ -->
<!-- EN-Revision: 1.4 Maintainer: tom Status: ready -->
<!-- CREDITS: tschuer -->
<refentry id="function.substr-count">
<refnamediv>
<refname>substr_count</refname>
<refpurpose>
Ermittelt, wie oft eine Zeichenkette in einem String vorkommt
</refpurpose>
</refnamediv>
<refsect1>
<title>Beschreibung:</title>
<methodsynopsis>
<type>int</type><methodname>substr_count</methodname>
<methodparam><type>string</type><parameter>haystack</parameter></methodparam>
<methodparam><type>string</type><parameter>needle</parameter></methodparam>
</methodsynopsis>
<para>
Die Funktion <function>substr_count</function> ermittelt, wie oft
<parameter>needle</parameter> in dem String
<parameter>haystack</parameter> vorkommt, und gibt die Anzahl der
Vorkommen zurück.
</para>
<para>
<example>
<title><function>substr_count</function>-Beispiel:</title>
<programlisting role="php">
<![CDATA[
<?php
print substr_count("Dieser Test ist Mist", "ist"); // ergibt 2
?>
]]>
</programlisting>
</example>
</para>
<simpara>
Siehe auch <function>count_chars</function>,
<function>strpos</function>, <function>substr</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
-->