Search Results
Return Values ¶ mb_substr () returns the portion of string specified by the start and length parameters.
May 7, 2023 · The mb_substr () is an inbuilt function in PHP that is used to extract a portion of a string, based on a specified starting position and length, while taking into account the multi-byte character encoding of the string.
The mb_substr() function solves this problem by operating on character counts rather than byte offsets, ensuring safe and accurate substring extraction. Note: The mb_substr() function is a safe, multibyte-aware alternative to substr().
La fonction mb_substr extrait et retourne une sous-chaîne d'une chaîne, en travaillant correctement avec les encodages multioctets (par exemple, UTF-8). Le premier paramètre est la chaîne, le second - la position de départ, le troisième (optionnel) - la longueur de la sous-chaîne.
Gladir.com - Manuel pour le langage de programmation PHP. MB_SUBSTR : Cette fonction permet d'effectuer la vérification de la validité d'une chaîne de caractères multi-octets par rapport à l'encodage spécifié.
Valeurs de retour mb_substr () retourne la portion de la chaîne string qui commence au caractère start et a la longueur de length caractères.
People also ask
What is MB_substr in PHP?
What is MB_SUBSTR() function?
What are the parameters of a substring function?
What does MB_substr do if omitted or null is passed?
Valeurs de retour mb_substr () retourne la portion de la chaîne str qui commence au caractère start et a la longueur de length caractères.
