SommaireTelecharger la documentationChapitre suivantChapitre precedent  

  .: News :.: Edito :.: Scripts :.: Forum :.: Erreurs :.: Jobs :. 
 
Sommaire

Chaînes de caractères multi-octets

Introduction
mb_language
mb_parse_str
mb_internal_encoding
mb_http_input
mb_http_output
mb_detect_order
mb_substitute_character
mb_output_handler
mb_preferred_mime_name
mb_strlen
mb_strpos
mb_strrpos
mb_substr
mb_strcut
mb_strwidth
mb_strimwidth
mb_convert_encoding
mb_detect_encoding
mb_convert_kana
mb_encode_mimeheader
mb_decode_mimeheader
mb_convert_variables
mb_encode_numericentity
mb_decode_numericentity
mb_send_mail

6.51.17 mb_strimwidth

[ Exemples avec mb_strimwidth ]   PHP 4 >= 4.0.6

Description

string mb_strimwidth(string str ,int start ,int width ,string trimmarker ,[string encoding ])

mb_strimwidth tronque la chaîne str à la longueur width. Elle retourne la chaîne tronquée.

SI trimmarker est fourni, trimmarker est ajoutée à la fin de la chaîne retournée.

start est l'offet de départ, en nombre de caractères depuis le début de la chaîne (cela commence à 0).

encoding est un nom d'encodage de caractères. S'il n'est pas spécifié, l'encodage interne est utilisé.

Exemple avec mb_strimwidth

<?php
$str 
mb_strimwidth($str040"..>");
?>

Voir aussi mb_strwidth et mb_internal_encoding.


Chapitre précédentChapitre suivantAccueil nexen.net