--$a

Decrement and return

Decrement a variable by one and return it.

Tags
Related
$a = 1;

$b = --$a; // $a = 0, $b = 0

null coalescing

What is this? Who are you!?

PHP Operators is a reference guide for operators old and new in the PHP programming language. We're SPATIE, a web development agency from Belgium. Besides client work we like to contribute to the open source community and make fun projects like this one.