<?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.2 $ --> <refentry id="function.strpbrk"> <refnamediv> <refname>strpbrk</refname> <refpurpose> Search a string for any of a set of characters </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>string</type><methodname>strpbrk</methodname> <methodparam><type>string</type><parameter>haystack</parameter></methodparam> <methodparam><type>string</type><parameter>char_list</parameter></methodparam> </methodsynopsis> <para> <function>strpbrk</function> searches the <parameter>haystack</parameter> string for a <parameter>char_list</parameter>, and returns a string starting from the character found (or &false; if it is not found). </para> <note> <para> The <parameter>char_list</parameter> parameter is case sensitive. </para> </note> <para> <example> <title><function>strpbrk</function> example</title> <programlisting role="php"> <![CDATA[ <?php $text = 'This is a Simple text.'; // this echoes "is is a Simple text." because 'i' is matched first echo strpbrk($text, 'mi'); // this echoes "Simple text." because chars are case sensitive echo strpbrk($text, 'S'); ?> ]]> </programlisting> </example> </para> </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 -->