mirror of
https://github.com/macintoshplus/doc-fr.git
synced 2026-03-29 20:32:10 +02:00
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@166712 c90b9560-bf6c-de11-be94-00142212c4b1
81 lines
2.5 KiB
XML
81 lines
2.5 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.8 $ -->
|
|
<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready -->
|
|
<!-- Reviewed: yes -->
|
|
<refentry id="function.mb-strimwidth">
|
|
<refnamediv>
|
|
<refname>mb_strimwidth</refname>
|
|
<refpurpose>Tronque une chaîne</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Description</title>
|
|
<methodsynopsis>
|
|
<type>string</type><methodname>mb_strimwidth</methodname>
|
|
<methodparam><type>string</type><parameter>str</parameter></methodparam>
|
|
<methodparam><type>int</type><parameter>start</parameter></methodparam>
|
|
<methodparam><type>int</type><parameter>width</parameter></methodparam>
|
|
<methodparam choice="opt"><type>string</type><parameter>trimmarker</parameter></methodparam>
|
|
<methodparam choice="opt"><type>string</type><parameter>encoding</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
<function>mb_strimwidth</function> tronque la chaîne
|
|
<parameter>str</parameter> à la longueur
|
|
<parameter>width</parameter>. Elle retourne la chaîne tronquée.
|
|
</para>
|
|
<para>
|
|
Si <parameter>trimmarker</parameter> est fourni,
|
|
<parameter>trimmarker</parameter> est ajoutée à la fin de la chaîne
|
|
retournée.
|
|
</para>
|
|
<para>
|
|
<parameter>start</parameter> est l'offet de départ, en nombre
|
|
de caractères depuis le début de la chaîne (cela commence à 0).
|
|
</para>
|
|
<para>
|
|
<parameter>trimmarker</parameter> est la chaîne ajoutée à la fin de la chaîne tronquée.
|
|
</para>
|
|
<para>
|
|
<parameter>encoding</parameter> est un nom d'encodage de caractères. S'il
|
|
n'est pas spécifié, l'encodage interne est utilisé.
|
|
</para>
|
|
<para>
|
|
<example>
|
|
<title>Exemple avec <function>mb_strimwidth</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$str = mb_strimwidth($str, 0, 40, "..>");
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
<para>
|
|
Voir aussi
|
|
<function>mb_strwidth</function> et
|
|
<function>mb_internal_encoding</function>.
|
|
</para>
|
|
</refsect1>
|
|
</refentry>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|