Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Triple Plus Operator

<?php

$a = 1;
$b = $a+++ ++$a;
echo $b;

This is a white space trick, where the expression allows for ++ and + to follow each other. Note that it is not possible to make a quadruple (four times) or pentuple (five times), operator, as PHP does not parse it anymore.

See Also

PHP Features

Last updated: 10 September 2026