Rapide Advanced Adulte
 
 Web|Image|Shop|Video|News|Wmx|Mobile|Wiki|Ajouter ce moteur

     Manuel PHP     
Partager
 
 
Partager
Partager

 

Table :

.mb check encoding
.mb convert case
.mb convert encoding
.mb convert kana
.mb convert variables
.mb decode mimeheader
.mb decode numericentity
.mb detect encoding
.mb detect order
.mb encode mimeheader
.mb encode numericentity
.mb ereg match
.mb ereg replace
.mb ereg search getpos
.mb ereg search getregs
.mb ereg search init
.mb ereg search pos
.mb ereg search regs
.mb ereg search setpos
.mb ereg search
.mb ereg
.mb eregi replace
.mb eregi
.mb get info
.mb http input
.mb http output
.mb internal encoding
.mb language
.mb list encodings alias names
.mb list encodings
.mb list mime names
.mb output handler
.mb parse str
.mb preferred mime name
.mb regex encoding
.mb regex set options
.mb send mail
.mb split
.mb strcut
.mb strimwidth
.mb stripos
.mb stristr
.mb strlen
.mb strpos
.mb strrchr
.mb strrichr
.mb strripos
.mb strrpos
.mb strstr
.mb strtolower
.mb strtoupper
.mb strwidth
.mb substitute character
.mb substr count
.mb substr
 
   

  mb_strimwidth  


mb_strimwidth

(PHP 4 >= 4.0.6, PHP 5)

mb_strimwidth -- Tronque une chaîne

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).

trimmarker est la chaîne ajoutée à la fin de la chaîne tronquée.

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

Exemple 1. Exemple avec mb_strimwidth()

<?php
$str
= mb_strimwidth($str, 0, 40, "..>");
?>

Voir aussi mb_strwidth() et mb_internal_encoding().


    Annonces       
 

 Retour au chapitre Php

 

Top
 

Ajouter JungleKey.fr à votre Explorateur

 
 

About Us | © 2007 JungleKey




iBlack | Mobile | Wiki | Ajouter ce moteur
.