cvs: phpdoc-fr /reference/com/functions variant-abs.xml variant-add.xml variant-and.xml variant-cast.xml variant-date-from-timestamp.xml
variant-imp.xml variant-int.xml variant-mod.xml variant-mul.xml variant-neg.xml variant-not.xml variant-or.xml variant-pow.xml variant-round.xml
variant-set-type.xml variant-xor.xml
| From: | Mehdi Achour | Date: | Sat, 22 May 2004 11:59:24 +0000 |
| Subject: | cvs: phpdoc-fr /reference/com/functions variant-abs.xml variant-add.xml variant-and.xml variant-cast.xml variant-date-from-timestamp.xml variant-imp.xml variant-int.xml variant-mod.xml variant-mul.xml variant-neg.xml variant-not.xml variant-or.xml variant-pow.xml variant-round.xml variant-set-type.xml variant-xor.xml |
||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-2694@lists.php.net to get a copy of this message | ||
didou Sat May 22 07:59:24 2004 EDT
Added files:
/phpdoc-fr/reference/com/functions variant-abs.xml variant-add.xml
variant-and.xml variant-cast.xml
variant-date-from-timestamp.xml
variant-imp.xml variant-int.xml
variant-mod.xml variant-mul.xml
variant-neg.xml variant-not.xml
variant-or.xml variant-pow.xml
variant-round.xml
variant-set-type.xml
variant-xor.xml
Log:
sync with en
http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-abs.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-abs.xml +++ phpdoc-fr/reference/com/functions/variant-abs.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-abs"> <refnamediv> <refname>variant_abs</refname> <refpurpose> Retourne la valeur absolue d'un variant </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>variant_abs</methodname> <methodparam><type>mixed</type><parameter>val</parameter></methodparam> </methodsynopsis> <para> Retourne la valeur absolue de <parameter>val</parameter>. </para> <para> Voir aussi <function>abs</function>. </para> &reference.com.variant-arith; </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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-add.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-add.xml +++ phpdoc-fr/reference/com/functions/variant-add.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-add"> <refnamediv> <refname>variant_add</refname> <refpurpose> "Ajoute" deux valeurs de variants et retourne le résultat </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>variant_add</methodname> <methodparam><type>mixed</type><parameter>left</parameter></methodparam> <methodparam><type>mixed</type><parameter>right</parameter></methodparam> </methodsynopsis> <para> Ajoute <parameter>left</parameter> à <parameter>right</parameter> selon les règles suivantes (prises de la librairie MSDN), qui correspondent à celles de Visual Basic : <table> <title>Règle d'ajout des variants</title> <tgroup cols="2"> <thead> <row> <entry>Si</entry> <entry>Alors</entry> </row> </thead> <tbody> <row> <entry>Les deux expressions sont des chaînes</entry> <entry>Concaténation</entry> </row> <row> <entry>Une expression est de type chaîne et l'autre est un caractère</entry> <entry>Addition</entry> </row> <row> <entry>Une expression est numérique est l'autre est une chaîne</entry> <entry>Addition</entry> </row> <row> <entry>Les deux exxpressions sont numériques</entry> <entry>Addition</entry> </row> <row> <entry>Une expression est NULL</entry> <entry>NULL est retourné</entry> </row> <row> <entry>Les deux expressions sont vides</entry> <entry>Le sous-type entier est retourné</entry> </row> </tbody> </tgroup> </table> </para> <para> Voir aussi <function>variant_sub</function>. </para> &reference.com.variant-arith; </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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-and.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-and.xml +++ phpdoc-fr/reference/com/functions/variant-and.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-and"> <refnamediv> <refname>variant_and</refname> <refpurpose> Effectue un ET entre deux variants et retourne le résultat </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>variant_and</methodname> <methodparam><type>mixed</type><parameter>left</parameter></methodparam> <methodparam><type>mixed</type><parameter>right</parameter></methodparam> </methodsynopsis> <para> Effectue un ET sur les bits, selon la table de vérité suivante; notez que celà est différent du ET normal. <table> <title>Règles du ET variant</title> <tgroup cols="3"> <thead> <row> <entry>Si <parameter>left</parameter> est</entry> <entry>Si <parameter>right</parameter> est</entry> <entry>alors le résultat est</entry> </row> </thead> <tbody> <row><entry>&true;</entry><entry>&true;</entry><entry>&true;</entry></row> <row><entry>&true;</entry><entry>&false;</entry><entry>&false;</entry></row> <row><entry>&true;</entry><entry>&null;</entry><entry>&null;</entry></row> <row><entry>&false;</entry><entry>&true;</entry><entry>&false;</entry></row> <row><entry>&false;</entry><entry>&false;</entry><entry>&false;</entry></row> <row><entry>&false;</entry><entry>&null;</entry><entry>&false;</entry></row> <row><entry>&null;</entry><entry>&true;</entry><entry>&null;</entry></row> <row><entry>&null;</entry><entry>&false;</entry><entry>&false;</entry></row> <row><entry>&null;</entry><entry>&null;</entry><entry>&null;</entry></row> </tbody> </tgroup> </table> </para> <para> Voir aussi <function>variant_or</function>. </para> &reference.com.variant-arith; </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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-cast.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-cast.xml +++ phpdoc-fr/reference/com/functions/variant-cast.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-cast"> <refnamediv> <refname>variant_cast</refname> <refpurpose> Convertit un variant en un nouvel objet variant de type différent </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>object</type><methodname>variant_cast</methodname> <methodparam><type>object</type><parameter>variant</parameter></methodparam> <methodparam><type>int</type><parameter>type</parameter></methodparam> </methodsynopsis> <para> Cette fonction crée une copie de <parameter>variant</parameter> et performe alors un transtypage pour forcer la copie à avoir le type donné par <parameter>type</parameter>. <parameter>type</parameter> doit êre l'une des constantes <constant>VT_XXX</constant>. </para> <para> Cette fonction est en fait la fonction VariantChangeType() de la librairie COM; consultez MSDN pour plus d'informations. </para> <para> Voir aussi <function>variant_set_type</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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-date-from-timestamp.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-date-from-timestamp.xml +++ phpdoc-fr/reference/com/functions/variant-date-from-timestamp.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-date-from-timestamp"> <refnamediv> <refname>variant_date_from_timestamp</refname> <refpurpose> Retourne une représentation date en variant d'un timestamp unix </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>object</type><methodname>variant_date_from_timestamp</methodname> <methodparam><type>int</type><parameter>timestamp</parameter></methodparam> </methodsynopsis> <para> Convertit <parameter>timestamp</parameter> depuis un timestamp unix vers un type variant <constant>VT_DATE</constant>. Celà permet une intéropabilité plus facile des parties unix-iènnes de &php; et COM. </para> <para> Voir aussi <function>variant_date_to_timestamp</function> pour l'opération inverse, <function>mktime</function> et <function>time</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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-imp.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-imp.xml +++ phpdoc-fr/reference/com/functions/variant-imp.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-imp"> <refnamediv> <refname>variant_imp</refname> <refpurpose> Performe une implication sur les bits de deux variants </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>variant_imp</methodname> <methodparam><type>mixed</type><parameter>left</parameter></methodparam> <methodparam><type>mixed</type><parameter>right</parameter></methodparam> </methodsynopsis> <para> Performe une opération d'implication sur les bits, selon la table de vérités suivante : <table> <title>Table d'implication des variants</title> <tgroup cols="3"> <thead> <row> <entry>Si <parameter>left</parameter> est</entry> <entry>Si <parameter>right</parameter> est</entry> <entry>alors le résultat est</entry> </row> </thead> <tbody> <row><entry>&true;</entry><entry>&true;</entry><entry>&true;</entry></row> <row><entry>&true;</entry><entry>&false;</entry><entry>&true;</entry></row> <row><entry>&true;</entry><entry>&null;</entry><entry>&true;</entry></row> <row><entry>&false;</entry><entry>&true;</entry><entry>&true;</entry></row> <row><entry>&false;</entry><entry>&false;</entry><entry>&true;</entry></row> <row><entry>&false;</entry><entry>&null;</entry><entry>&true;</entry></row> <row><entry>&null;</entry><entry>&true;</entry><entry>&true;</entry></row> <row><entry>&null;</entry><entry>&false;</entry><entry>&null;</entry></row> <row><entry>&null;</entry><entry>&null;</entry><entry>&null;</entry></row> </tbody> </tgroup> </table> </para> &reference.com.variant-arith; </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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-int.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-int.xml +++ phpdoc-fr/reference/com/functions/variant-int.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-int"> <refnamediv> <refname>variant_int</refname> <refpurpose> Retourne la partie entière d'un variant </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>variant_int</methodname> <methodparam><type>mixed</type><parameter>variant</parameter></methodparam> </methodsynopsis> <para> Si <parameter>variant</parameter> est négatif, le premier entier négatif supérieur ou égal à ce variant est retourné, sinon cette fonction retourne la partie entière de la valeur de <parameter>variant</parameter>. </para> &reference.com.variant-arith; <para> Voir aussi <function>variant_fix</function>, <function>variant_round</function>, <function>floor</function>, <function>ceil</function> et <function>round</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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-mod.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-mod.xml +++ phpdoc-fr/reference/com/functions/variant-mod.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-mod"> <refnamediv> <refname>variant_mod</refname> <refpurpose> Divides two variants and returns only the remainder </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>variant_mod</methodname> <methodparam><type>mixed</type><parameter>left</parameter></methodparam> <methodparam><type>mixed</type><parameter>right</parameter></methodparam> </methodsynopsis> <para> Divise <parameter>left</parameter> par <parameter>right</parameter> et retourne le reste. </para> &reference.com.variant-arith; <para> Voir aussi also <function>variant_div</function>, <function>variant_idiv</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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-mul.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-mul.xml +++ phpdoc-fr/reference/com/functions/variant-mul.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-mul"> <refnamediv> <refname>variant_mul</refname> <refpurpose> Multiplie les valeurs de deux variants et retourne le résultat </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>variant_mul</methodname> <methodparam><type>mixed</type><parameter>left</parameter></methodparam> <methodparam><type>mixed</type><parameter>right</parameter></methodparam> </methodsynopsis> <para> Multiplie <parameter>left</parameter> par <parameter>right</parameter> et retourne le résultat selon les règles suivantes : <table> <title>Règles de multiplication des variants</title> <tgroup cols="2"> <thead> <row> <entry>Si</entry> <entry>Alors</entry> </row> </thead> <tbody> <row> <entry>Les deux expressions sont du type chaîne, date, charactère ou booléen</entry> <entry>Multiplication</entry> </row> <row> <entry>Une expression est une chaîne et l'autre est un caractère</entry> <entry>Multiplication</entry> </row> <row> <entry>Une expression est numérique et l'autre est une chaîne</entry> <entry>Multiplication</entry> </row> <row> <entry>Les deux expressions sont numériques</entry> <entry>Multiplication</entry> </row> <row> <entry>Une des expressions est NULL</entry> <entry>NULL est retourné</entry> </row> <row> <entry>Les deux expressions sont vides</entry> <entry>Une chaîne vide est retournée</entry> </row> </tbody> </tgroup> </table> </para> <para> Les valeurs booléennes sont converties de -1 à &false; et de 0 à &true;. </para> <para> Voir aussi <function>variant_div</function>, <function>variant_idiv</function>. </para> &reference.com.variant-arith; </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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-neg.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-neg.xml +++ phpdoc-fr/reference/com/functions/variant-neg.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-neg"> <refnamediv> <refname>variant_neg</refname> <refpurpose> Effctue une négation logique sur un variant </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>variant_neg</methodname> <methodparam><type>mixed</type><parameter>variant</parameter></methodparam> </methodsynopsis> <para> Effectue une négation logique de <parameter>variant</parameter> et retourne le résultat. </para> &reference.com.variant-arith; </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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-not.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-not.xml +++ phpdoc-fr/reference/com/functions/variant-not.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-not"> <refnamediv> <refname>variant_not</refname> <refpurpose> Performe une négation sur les bits sur un variant </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>variant_not</methodname> <methodparam><type>mixed</type><parameter>variant</parameter></methodparam> </methodsynopsis> <para> Performe une négation sur les bits sur le paramètre <parameter>variant</parameter> et retourne le résultat. Si <parameter>variant</parameter> est &null;, le résultat sera aussi &null;. </para> &reference.com.variant-arith; </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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-or.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-or.xml +++ phpdoc-fr/reference/com/functions/variant-or.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-or"> <refnamediv> <refname>variant_or</refname> <refpurpose> Performe une disjonction logique sur deux variants </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>variant_or</methodname> <methodparam><type>mixed</type><parameter>left</parameter></methodparam> <methodparam><type>mixed</type><parameter>right</parameter></methodparam> </methodsynopsis> <para> Effectue une opération sur les bits de types OR, selon la table de vérité suivante; notez que ceci est différent de l'expression OR normale. <table> <title>Règles du OR Variant</title> <tgroup cols="3"> <thead> <row> <entry>Si <parameter>left</parameter> est</entry> <entry>Si <parameter>right</parameter> est</entry> <entry>alors le résultat est</entry> </row> </thead> <tbody> <row><entry>&true;</entry><entry>&true;</entry><entry>&true;</entry></row> <row><entry>&true;</entry><entry>&false;</entry><entry>&true;</entry></row> <row><entry>&true;</entry><entry>&null;</entry><entry>&true;</entry></row> <row><entry>&false;</entry><entry>&true;</entry><entry>&true;</entry></row> <row><entry>&false;</entry><entry>&false;</entry><entry>&false;</entry></row> <row><entry>&false;</entry><entry>&null;</entry><entry>&null;</entry></row> <row><entry>&null;</entry><entry>&true;</entry><entry>&true;</entry></row> <row><entry>&null;</entry><entry>&false;</entry><entry>&null;</entry></row> <row><entry>&null;</entry><entry>&null;</entry><entry>&null;</entry></row> </tbody> </tgroup> </table> </para> &reference.com.variant-arith; <para> Voir aussi <function>variant_and</function> et <function>variant_xor</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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-pow.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-pow.xml +++ phpdoc-fr/reference/com/functions/variant-pow.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-pow"> <refnamediv> <refname>variant_pow</refname> <refpurpose> Retourne le résultat de la fonction puissance avec deux variants </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>variant_pow</methodname> <methodparam><type>mixed</type><parameter>left</parameter></methodparam> <methodparam><type>mixed</type><parameter>right</parameter></methodparam> </methodsynopsis> <para> Retourne <parameter>left</parameter> à la puissance <parameter>right</parameter>. </para> <para> Voir aussi <function>pow</function>. </para> &reference.com.variant-arith; </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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-round.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-round.xml +++ phpdoc-fr/reference/com/functions/variant-round.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-round"> <refnamediv> <refname>variant_round</refname> <refpurpose> Arrondit le variant au nombre spécifié de décimales </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>variant_round</methodname> <methodparam><type>mixed</type><parameter>variant</parameter></methodparam> <methodparam><type>int</type><parameter>decimals</parameter></methodparam> </methodsynopsis> <para> Retourne la valeur de <parameter>variant</parameter> arrondie à <parameter>decimals</parameter> décimales. </para> <para> Voir aussi <function>round</function>. </para> &reference.com.variant-arith; </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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-set-type.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-set-type.xml +++ phpdoc-fr/reference/com/functions/variant-set-type.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-set-type"> <refnamediv> <refname>variant_set_type</refname> <refpurpose> Convertit un variant en un autre type. Le Variant est modifié "sur-place" </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>variant_set_type</methodname> <methodparam><type>object</type><parameter>variant</parameter></methodparam> <methodparam><type>int</type><parameter>type</parameter></methodparam> </methodsynopsis> <para> Cette fonction est similaire <function>variant_cast</function> à part que le variant est modifié "sur-place"; aucun nouveau variant n'est créé. Les paramètres de cette fonction ont la même significaton que ceux de <function>variant_cast</function>. </para> <para> Voir aussi <function>variant_cast</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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-xor.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-xor.xml +++ phpdoc-fr/reference/com/functions/variant-xor.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-xor"> <refnamediv> <refname>variant_xor</refname> <refpurpose> Performe une exclusion logique sur deux variants </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>variant_xor</methodname> <methodparam><type>mixed</type><parameter>left</parameter></methodparam> <methodparam><type>mixed</type><parameter>right</parameter></methodparam> </methodsynopsis> <para> Performe une exclusion logique selon la table des vérités suivante : <table> <title>Règles XOR pour les Variant</title> <tgroup cols="3"> <thead> <row> <entry>Si <parameter>left</parameter> est</entry> <entry>Si <parameter>right</parameter> est</entry> <entry>lors le résultat est</entry> </row> </thead> <tbody> <row><entry>&true;</entry><entry>&true;</entry><entry>&false;</entry></row> <row><entry>&true;</entry><entry>&false;</entry><entry>&true;</entry></row> <row><entry>&false;</entry><entry>&true;</entry><entry>&true;</entry></row> <row><entry>&false;</entry><entry>&false;</entry><entry>&false;</entry></row> <row><entry>&null;</entry><entry>&null;</entry><entry>&null;</entry></row> </tbody> </tgroup> </table> </para> &reference.com.variant-arith; <para> Voir aussi <function>variant_and</function> et <function>variant_or</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 -->
http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-abs.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-abs.xml +++ phpdoc-fr/reference/com/functions/variant-abs.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-abs"> <refnamediv> <refname>variant_abs</refname> <refpurpose> Retourne la valeur absolue d'un variant </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>variant_abs</methodname> <methodparam><type>mixed</type><parameter>val</parameter></methodparam> </methodsynopsis> <para> Retourne la valeur absolue de <parameter>val</parameter>. </para> <para> Voir aussi <function>abs</function>. </para> &reference.com.variant-arith; </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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-add.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-add.xml +++ phpdoc-fr/reference/com/functions/variant-add.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-add"> <refnamediv> <refname>variant_add</refname> <refpurpose> "Ajoute" deux valeurs de variants et retourne le résultat </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>variant_add</methodname> <methodparam><type>mixed</type><parameter>left</parameter></methodparam> <methodparam><type>mixed</type><parameter>right</parameter></methodparam> </methodsynopsis> <para> Ajoute <parameter>left</parameter> à <parameter>right</parameter> selon les règles suivantes (prises de la librairie MSDN), qui correspondent à celles de Visual Basic : <table> <title>Règle d'ajout des variants</title> <tgroup cols="2"> <thead> <row> <entry>Si</entry> <entry>Alors</entry> </row> </thead> <tbody> <row> <entry>Les deux expressions sont des chaînes</entry> <entry>Concaténation</entry> </row> <row> <entry>Une expression est de type chaîne et l'autre est un caractère</entry> <entry>Addition</entry> </row> <row> <entry>Une expression est numérique est l'autre est une chaîne</entry> <entry>Addition</entry> </row> <row> <entry>Les deux exxpressions sont numériques</entry> <entry>Addition</entry> </row> <row> <entry>Une expression est NULL</entry> <entry>NULL est retourné</entry> </row> <row> <entry>Les deux expressions sont vides</entry> <entry>Le sous-type entier est retourné</entry> </row> </tbody> </tgroup> </table> </para> <para> Voir aussi <function>variant_sub</function>. </para> &reference.com.variant-arith; </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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-and.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-and.xml +++ phpdoc-fr/reference/com/functions/variant-and.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-and"> <refnamediv> <refname>variant_and</refname> <refpurpose> Effectue un ET entre deux variants et retourne le résultat </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>variant_and</methodname> <methodparam><type>mixed</type><parameter>left</parameter></methodparam> <methodparam><type>mixed</type><parameter>right</parameter></methodparam> </methodsynopsis> <para> Effectue un ET sur les bits, selon la table de vérité suivante; notez que celà est différent du ET normal. <table> <title>Règles du ET variant</title> <tgroup cols="3"> <thead> <row> <entry>Si <parameter>left</parameter> est</entry> <entry>Si <parameter>right</parameter> est</entry> <entry>alors le résultat est</entry> </row> </thead> <tbody> <row><entry>&true;</entry><entry>&true;</entry><entry>&true;</entry></row> <row><entry>&true;</entry><entry>&false;</entry><entry>&false;</entry></row> <row><entry>&true;</entry><entry>&null;</entry><entry>&null;</entry></row> <row><entry>&false;</entry><entry>&true;</entry><entry>&false;</entry></row> <row><entry>&false;</entry><entry>&false;</entry><entry>&false;</entry></row> <row><entry>&false;</entry><entry>&null;</entry><entry>&false;</entry></row> <row><entry>&null;</entry><entry>&true;</entry><entry>&null;</entry></row> <row><entry>&null;</entry><entry>&false;</entry><entry>&false;</entry></row> <row><entry>&null;</entry><entry>&null;</entry><entry>&null;</entry></row> </tbody> </tgroup> </table> </para> <para> Voir aussi <function>variant_or</function>. </para> &reference.com.variant-arith; </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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-cast.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-cast.xml +++ phpdoc-fr/reference/com/functions/variant-cast.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-cast"> <refnamediv> <refname>variant_cast</refname> <refpurpose> Convertit un variant en un nouvel objet variant de type différent </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>object</type><methodname>variant_cast</methodname> <methodparam><type>object</type><parameter>variant</parameter></methodparam> <methodparam><type>int</type><parameter>type</parameter></methodparam> </methodsynopsis> <para> Cette fonction crée une copie de <parameter>variant</parameter> et performe alors un transtypage pour forcer la copie à avoir le type donné par <parameter>type</parameter>. <parameter>type</parameter> doit êre l'une des constantes <constant>VT_XXX</constant>. </para> <para> Cette fonction est en fait la fonction VariantChangeType() de la librairie COM; consultez MSDN pour plus d'informations. </para> <para> Voir aussi <function>variant_set_type</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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-date-from-timestamp.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-date-from-timestamp.xml +++ phpdoc-fr/reference/com/functions/variant-date-from-timestamp.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-date-from-timestamp"> <refnamediv> <refname>variant_date_from_timestamp</refname> <refpurpose> Retourne une représentation date en variant d'un timestamp unix </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>object</type><methodname>variant_date_from_timestamp</methodname> <methodparam><type>int</type><parameter>timestamp</parameter></methodparam> </methodsynopsis> <para> Convertit <parameter>timestamp</parameter> depuis un timestamp unix vers un type variant <constant>VT_DATE</constant>. Celà permet une intéropabilité plus facile des parties unix-iènnes de &php; et COM. </para> <para> Voir aussi <function>variant_date_to_timestamp</function> pour l'opération inverse, <function>mktime</function> et <function>time</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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-imp.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-imp.xml +++ phpdoc-fr/reference/com/functions/variant-imp.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-imp"> <refnamediv> <refname>variant_imp</refname> <refpurpose> Performe une implication sur les bits de deux variants </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>variant_imp</methodname> <methodparam><type>mixed</type><parameter>left</parameter></methodparam> <methodparam><type>mixed</type><parameter>right</parameter></methodparam> </methodsynopsis> <para> Performe une opération d'implication sur les bits, selon la table de vérités suivante : <table> <title>Table d'implication des variants</title> <tgroup cols="3"> <thead> <row> <entry>Si <parameter>left</parameter> est</entry> <entry>Si <parameter>right</parameter> est</entry> <entry>alors le résultat est</entry> </row> </thead> <tbody> <row><entry>&true;</entry><entry>&true;</entry><entry>&true;</entry></row> <row><entry>&true;</entry><entry>&false;</entry><entry>&true;</entry></row> <row><entry>&true;</entry><entry>&null;</entry><entry>&true;</entry></row> <row><entry>&false;</entry><entry>&true;</entry><entry>&true;</entry></row> <row><entry>&false;</entry><entry>&false;</entry><entry>&true;</entry></row> <row><entry>&false;</entry><entry>&null;</entry><entry>&true;</entry></row> <row><entry>&null;</entry><entry>&true;</entry><entry>&true;</entry></row> <row><entry>&null;</entry><entry>&false;</entry><entry>&null;</entry></row> <row><entry>&null;</entry><entry>&null;</entry><entry>&null;</entry></row> </tbody> </tgroup> </table> </para> &reference.com.variant-arith; </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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-int.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-int.xml +++ phpdoc-fr/reference/com/functions/variant-int.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-int"> <refnamediv> <refname>variant_int</refname> <refpurpose> Retourne la partie entière d'un variant </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>variant_int</methodname> <methodparam><type>mixed</type><parameter>variant</parameter></methodparam> </methodsynopsis> <para> Si <parameter>variant</parameter> est négatif, le premier entier négatif supérieur ou égal à ce variant est retourné, sinon cette fonction retourne la partie entière de la valeur de <parameter>variant</parameter>. </para> &reference.com.variant-arith; <para> Voir aussi <function>variant_fix</function>, <function>variant_round</function>, <function>floor</function>, <function>ceil</function> et <function>round</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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-mod.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-mod.xml +++ phpdoc-fr/reference/com/functions/variant-mod.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-mod"> <refnamediv> <refname>variant_mod</refname> <refpurpose> Divides two variants and returns only the remainder </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>variant_mod</methodname> <methodparam><type>mixed</type><parameter>left</parameter></methodparam> <methodparam><type>mixed</type><parameter>right</parameter></methodparam> </methodsynopsis> <para> Divise <parameter>left</parameter> par <parameter>right</parameter> et retourne le reste. </para> &reference.com.variant-arith; <para> Voir aussi also <function>variant_div</function>, <function>variant_idiv</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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-mul.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-mul.xml +++ phpdoc-fr/reference/com/functions/variant-mul.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-mul"> <refnamediv> <refname>variant_mul</refname> <refpurpose> Multiplie les valeurs de deux variants et retourne le résultat </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>variant_mul</methodname> <methodparam><type>mixed</type><parameter>left</parameter></methodparam> <methodparam><type>mixed</type><parameter>right</parameter></methodparam> </methodsynopsis> <para> Multiplie <parameter>left</parameter> par <parameter>right</parameter> et retourne le résultat selon les règles suivantes : <table> <title>Règles de multiplication des variants</title> <tgroup cols="2"> <thead> <row> <entry>Si</entry> <entry>Alors</entry> </row> </thead> <tbody> <row> <entry>Les deux expressions sont du type chaîne, date, charactère ou booléen</entry> <entry>Multiplication</entry> </row> <row> <entry>Une expression est une chaîne et l'autre est un caractère</entry> <entry>Multiplication</entry> </row> <row> <entry>Une expression est numérique et l'autre est une chaîne</entry> <entry>Multiplication</entry> </row> <row> <entry>Les deux expressions sont numériques</entry> <entry>Multiplication</entry> </row> <row> <entry>Une des expressions est NULL</entry> <entry>NULL est retourné</entry> </row> <row> <entry>Les deux expressions sont vides</entry> <entry>Une chaîne vide est retournée</entry> </row> </tbody> </tgroup> </table> </para> <para> Les valeurs booléennes sont converties de -1 à &false; et de 0 à &true;. </para> <para> Voir aussi <function>variant_div</function>, <function>variant_idiv</function>. </para> &reference.com.variant-arith; </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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-neg.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-neg.xml +++ phpdoc-fr/reference/com/functions/variant-neg.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-neg"> <refnamediv> <refname>variant_neg</refname> <refpurpose> Effctue une négation logique sur un variant </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>variant_neg</methodname> <methodparam><type>mixed</type><parameter>variant</parameter></methodparam> </methodsynopsis> <para> Effectue une négation logique de <parameter>variant</parameter> et retourne le résultat. </para> &reference.com.variant-arith; </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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-not.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-not.xml +++ phpdoc-fr/reference/com/functions/variant-not.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-not"> <refnamediv> <refname>variant_not</refname> <refpurpose> Performe une négation sur les bits sur un variant </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>variant_not</methodname> <methodparam><type>mixed</type><parameter>variant</parameter></methodparam> </methodsynopsis> <para> Performe une négation sur les bits sur le paramètre <parameter>variant</parameter> et retourne le résultat. Si <parameter>variant</parameter> est &null;, le résultat sera aussi &null;. </para> &reference.com.variant-arith; </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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-or.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-or.xml +++ phpdoc-fr/reference/com/functions/variant-or.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-or"> <refnamediv> <refname>variant_or</refname> <refpurpose> Performe une disjonction logique sur deux variants </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>variant_or</methodname> <methodparam><type>mixed</type><parameter>left</parameter></methodparam> <methodparam><type>mixed</type><parameter>right</parameter></methodparam> </methodsynopsis> <para> Effectue une opération sur les bits de types OR, selon la table de vérité suivante; notez que ceci est différent de l'expression OR normale. <table> <title>Règles du OR Variant</title> <tgroup cols="3"> <thead> <row> <entry>Si <parameter>left</parameter> est</entry> <entry>Si <parameter>right</parameter> est</entry> <entry>alors le résultat est</entry> </row> </thead> <tbody> <row><entry>&true;</entry><entry>&true;</entry><entry>&true;</entry></row> <row><entry>&true;</entry><entry>&false;</entry><entry>&true;</entry></row> <row><entry>&true;</entry><entry>&null;</entry><entry>&true;</entry></row> <row><entry>&false;</entry><entry>&true;</entry><entry>&true;</entry></row> <row><entry>&false;</entry><entry>&false;</entry><entry>&false;</entry></row> <row><entry>&false;</entry><entry>&null;</entry><entry>&null;</entry></row> <row><entry>&null;</entry><entry>&true;</entry><entry>&true;</entry></row> <row><entry>&null;</entry><entry>&false;</entry><entry>&null;</entry></row> <row><entry>&null;</entry><entry>&null;</entry><entry>&null;</entry></row> </tbody> </tgroup> </table> </para> &reference.com.variant-arith; <para> Voir aussi <function>variant_and</function> et <function>variant_xor</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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-pow.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-pow.xml +++ phpdoc-fr/reference/com/functions/variant-pow.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-pow"> <refnamediv> <refname>variant_pow</refname> <refpurpose> Retourne le résultat de la fonction puissance avec deux variants </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>variant_pow</methodname> <methodparam><type>mixed</type><parameter>left</parameter></methodparam> <methodparam><type>mixed</type><parameter>right</parameter></methodparam> </methodsynopsis> <para> Retourne <parameter>left</parameter> à la puissance <parameter>right</parameter>. </para> <para> Voir aussi <function>pow</function>. </para> &reference.com.variant-arith; </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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-round.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-round.xml +++ phpdoc-fr/reference/com/functions/variant-round.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-round"> <refnamediv> <refname>variant_round</refname> <refpurpose> Arrondit le variant au nombre spécifié de décimales </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>variant_round</methodname> <methodparam><type>mixed</type><parameter>variant</parameter></methodparam> <methodparam><type>int</type><parameter>decimals</parameter></methodparam> </methodsynopsis> <para> Retourne la valeur de <parameter>variant</parameter> arrondie à <parameter>decimals</parameter> décimales. </para> <para> Voir aussi <function>round</function>. </para> &reference.com.variant-arith; </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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-set-type.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-set-type.xml +++ phpdoc-fr/reference/com/functions/variant-set-type.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-set-type"> <refnamediv> <refname>variant_set_type</refname> <refpurpose> Convertit un variant en un autre type. Le Variant est modifié "sur-place" </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>variant_set_type</methodname> <methodparam><type>object</type><parameter>variant</parameter></methodparam> <methodparam><type>int</type><parameter>type</parameter></methodparam> </methodsynopsis> <para> Cette fonction est similaire <function>variant_cast</function> à part que le variant est modifié "sur-place"; aucun nouveau variant n'est créé. Les paramètres de cette fonction ont la même significaton que ceux de <function>variant_cast</function>. </para> <para> Voir aussi <function>variant_cast</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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-xor.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-xor.xml +++ phpdoc-fr/reference/com/functions/variant-xor.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-xor"> <refnamediv> <refname>variant_xor</refname> <refpurpose> Performe une exclusion logique sur deux variants </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>variant_xor</methodname> <methodparam><type>mixed</type><parameter>left</parameter></methodparam> <methodparam><type>mixed</type><parameter>right</parameter></methodparam> </methodsynopsis> <para> Performe une exclusion logique selon la table des vérités suivante : <table> <title>Règles XOR pour les Variant</title> <tgroup cols="3"> <thead> <row> <entry>Si <parameter>left</parameter> est</entry> <entry>Si <parameter>right</parameter> est</entry> <entry>lors le résultat est</entry> </row> </thead> <tbody> <row><entry>&true;</entry><entry>&true;</entry><entry>&false;</entry></row> <row><entry>&true;</entry><entry>&false;</entry><entry>&true;</entry></row> <row><entry>&false;</entry><entry>&true;</entry><entry>&true;</entry></row> <row><entry>&false;</entry><entry>&false;</entry><entry>&false;</entry></row> <row><entry>&null;</entry><entry>&null;</entry><entry>&null;</entry></row> </tbody> </tgroup> </table> </para> &reference.com.variant-arith; <para> Voir aussi <function>variant_and</function> et <function>variant_or</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 -->