Manuel PHP
Précédent   Suivant

strrpos

strrpos -- Recherche la dernière occurrence d’un caractère dans une chaîne

Description

int strrpos(string haystack, char needle);

Returns the numeric position of the last occurrence of needle in the haystack string. Note that the needle in this case can only be a single character. If a string is passed as the needle, then only the first character of that string will be used.

Retourne la position numérique de la dernière occurence de needle dans la chaîne haystack string. Cette fonctoin ne peut accepter qu'un seul caractère.

Si needle n'est pas trouvé, retourne faux (false).

Si needle n'est as une chaîne, elle est convertie en entier, et utilisée comme la valeur ascii d'un caracètere.

Voir aussi strpos(), strrchr(), substr(), et strstr().

Précédent Sommaire Suivant
strlen Chapitre strpos