Answers for "Reference — What does this symbol mean in PHP?"

PHP
0

Reference — What does this symbol mean in PHP?

++ increment operator

-- decrement operator

Example    Name              Effect
---------------------------------------------------------------------
++$a       Pre-increment     Increments $a by one, then returns $a.
$a++       Post-increment    Returns $a, then increments $a by one.
--$a       Pre-decrement     Decrements $a by one, then returns $a.
$a--       Post-decrement    Returns $a, then decrements $a by one.
Posted by: Guest on January-20-2022

Code answers related to "Reference — What does this symbol mean in PHP?"

Browse Popular Code Answers by Language