Recherche sur les Noms des fonctions php/mysql
strpbrk()
Définition
Recherche une chaîne de caractères dans un ensemble de caractères - (PHP 5)Description
string strpbrk
( string $haystack
, string $char_list
)
strpbrk() recherche la chaîne haystack dans l'ensemble de caractères char_list .
Liste de paramètres
- haystack
-
La chaîne dans laquelle on cherche char_list .
- char_list
-
Ce paramètre est sensible à la casse.
Valeurs de retour
Retourne une chaîne, commençant au premier caractère trouvé, ou FALSE s'il n'a pas été trouvé.
Exemples
Exemple #1 Exemple avec strpbrk()
<?php
$text = 'This is a Simple text.';
// Ceci affichera "is is a Simple text." car 'i' correspond au premier
echo strpbrk($text, 'mi');
// Ceci affichera "Simple text." car les caractères sont sensibles à la casse
echo strpbrk($text, 'S');
?>
Bout de code utilisant la fonction strpbrk()
Aucun bout de code n'utilise la fonction strpbrk(). N'hésitez pas à en proposer un en vous connectant à l'espace membre.
Connexion
Les fonctions
Références
- addcslashes
- addslashes
- bin2hex
- chop
- chr
- chunk_split
- convert_cyr_string
- convert_uudecode
- convert_uuencode
- count_chars
- crc32
- crypt
- echo
- explode
- fprintf
- get_html_translation_table...
- hebrev
- hebrevc
- html_entity_decode
- htmlentities
- htmlspecialchars_decode...
- htmlspecialchars
- implode
- join
- levenshtein
- localeconv
- ltrim
- md5_file
- md5
- metaphone
- money_format
- nl_langinfo
- nl2br
- number_format
- ord
- parse_str
- printf
- quoted_printable_decode...
- quotemeta
- rtrim
- setlocale
- sha1_file
- sha1
- similar_text
- soundex
- sprintf
- sscanf
- str_getcsv
- str_ireplace
- str_pad
- str_repeat
- str_replace
- str_rot13
- str_shuffle
- str_split
- str_word_count
- strcasecmp
- strchr
- strcmp
- strcoll
- strcspn
- strip_tags
- stripcslashes
- stripos
- stripslashes
- stristr
- strlen
- strnatcasecmp
- strnatcmp
- strncasecmp
- strncmp
- strpbrk
- strpos
- strrchr
- strrev
- strripos
- strrpos
- strspn
- strstr
- strtok
- strtolower
- strtoupper
- strtr
- substr_compare
- substr_count
- substr_replace
- substr
- trim
- ucfirst
- ucwords
- vfprintf
- vprintf
- vsprintf





