Position actuelle: Accueil> Catégories de fonctions> stripos

stripos

Trouvez l'emplacement où la chaîne apparaît d'abord (cas insensible)
Nom:stripos
Catégorie:Chaîne
Langage de programmation:php
Description en une ligne:Renvoie où la chaîne apparaît d'abord dans une autre chaîne (cas insensible).

Exemple

Trouvez la première occurrence de "PHP" dans une chaîne:

 <span class="token php language-php"><span class="token delimiter important"><? Php</span>
<span class="token keyword">Echo</span> <span class="token function">Stripos</span> <span class="token punctuation">(</span> <span class="token string double-quoted-string">"Tu aimes PHP, j&#39;aime aussi PHP!"</span> <span class="token punctuation">,</span> <span class="token string double-quoted-string">"PHP"</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>

Essayez-le vous-même

Fonctions similaires
Articles populaires