Another thing about which I want to mention is the difference in the speed performance of the pre-and post-increment.
Une autre chose dont je veux vous parler est la différence dans les performances de vitesse de la pré-et post-incrémentation.
Another thing that I want to mention is the difference in the speed performance of the pre-and post-increment.
Une autre chose que je tiens à mentionner est la différence dans les performances de vitesse de la pré-et post-incrémentation.
++' evaluates to the original value of $variable, before it was incremented (PHP increments the variable after reading its value, thus the name 'post-increment').
++', évalue la valeur de la variable avant de l'incrémenter (PHP incrémente la variable après avoir lu sa valeur, d'où le nom de post-incrémentation).
PHP supports C-style pre- and post-increment and decrement operators.
PHP supporte les opérateurs de pre- et post-incrémentation et décrémentation, comme en langage C.
undef is always treated as numeric, and in particular is changed to 0 before incrementing (so that a post-increment of an undef value will return 0 rather than undef).
La valeur undef est toujours considérée comme numérique et en particulier est changée en 0 avant son incrémentation (et donc l'incrémentation postfixée d'une valeur indéfinie retournera 0 plutôt que undef).
Once in some book I read quite an old book to use pre increment instead of post-increment, and that supposedly is faster.
Une fois dans un livre, j'ai lu un livre assez ancien pour être utilisé au lieu d'incrémenter pré post-incrémentation, et qui est supposément plus rapide.
Another good example of expression orientation is pre- and post-increment and decrement.
Un autre bon exemple du langage orienté expression est la pre-incrémentation et la post-incrémentation, (ainsi que la décrémentation).
The following example should help you understand pre- and post-increment and expressions in general a bit better
Les exemples suivants devraient vous permettre de mieux comprendre la pre-incrémentation, la post-incrémentation et le concept des expressions en général
Both pre-increment and post-increment essentially increment the variable, and the effect on the variable is identical.
Les deux types d'opérateur d'incrémentation jouent le même rôle (c'est-à-dire qu'ils incrémentent la variable).
For post-increment and post-decrement (i.e. a++ or a - ), the value is produced, then the operation is performed.
In PHP, like in C, there are two types of increment - pre-increment and post-increment. Both pre-increment and post-increment essentially increment the variable, and the effect on the variable is identical.
PHP ajoute les possibilités d'incrémentation et de décrémentation comme c'est le cas dans le langage C. En PHP, comme en C, il y a deux types d'opérateurs d'incrémentation (pre-incrémentation et post-incrémentation).
PHP enhances the increment/decrement capabilities by making these expressions as well, like in C. In PHP, like in C, there are two types of increment - pre-increment and post-increment.
PHP ajoute les possibilités d'incrémentation et de décrémentation comme c'est le cas dans le langage C. En PHP, comme en C, il y a deux types d'opérateurs d'incrémentation (pre-incrémentation et post-incrémentation).
Andere resultaten
They receive regular salary increases through within-grade salary increments and post adjustment.