<?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.strpbrk.php',
    1 => 'strpbrk',
    2 => 'Ricerca in una stringa uno qualsiasi dei caratteri di un dato set',
  ),
  'up' => 
  array (
    0 => 'ref.strings.php',
    1 => 'String Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.strncmp.php',
    1 => 'strncmp',
  ),
  'next' => 
  array (
    0 => 'function.strpos.php',
    1 => 'strpos',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'it',
    'path' => 'reference/strings/functions/strpbrk.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.strpbrk" class="refentry">
   <div class="refnamediv">
    <h1 class="refname">strpbrk</h1>
    <p class="verinfo">(PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">strpbrk</span> &mdash; <span class="dc-title">
     Ricerca in una stringa uno qualsiasi dei caratteri di un dato set
    </span></p>

   </div>
   <div class="refsect1 unknown-1417" id="refsect1-function.strpbrk-unknown-1417">
    <h3 class="title">Descrizione</h3>
    <div class="methodsynopsis dc-description">
     <span class="methodname"><strong>strpbrk</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$haystack</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$char_list</code></span>): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

    <p class="para rdfs-comment">
     <span class="function"><strong>strpbrk()</strong></span> cerca nella stringa <code class="parameter">haystack</code>
     i caratteri indicati in <code class="parameter">char_list</code>, e restituisce una
     stringa a partire dal carattere trovato (oppure <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> se non ve ne sono).
    </p>
    <blockquote class="note"><p><strong class="note">Nota</strong>: 
     <p class="para">
      <code class="parameter">char_list</code> distingue tra maiuscole e minuscole.
     </p>
    </p></blockquote>
    <p class="para">
    <div class="example" id="example-1">
     <p><strong>Example #1 Esempio di uso di <span class="function"><strong>strpbrk()</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 /><br />$text </span><span style="color: #007700">= </span><span style="color: #DD0000">'This is a Simple text.'</span><span style="color: #007700">;<br /><br /></span><span style="color: #FF8000">// visualizza "is is a Simple text." because 'i' is matched first<br /></span><span style="color: #007700">echo </span><span style="color: #0000BB">strpbrk</span><span style="color: #007700">(</span><span style="color: #0000BB">$text</span><span style="color: #007700">, </span><span style="color: #DD0000">'mi'</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">// visualizza "Simple text." because chars are case sensitive<br /></span><span style="color: #007700">echo </span><span style="color: #0000BB">strpbrk</span><span style="color: #007700">(</span><span style="color: #0000BB">$text</span><span style="color: #007700">, </span><span style="color: #DD0000">'S'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
     </div>

    </div>
    </p>
   </div>

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