I found a piece of code (from one of our developer) and I was wondering why the output of this is 2?

<?php
  $a = 1;
  $a = $a-- +1;
  echo $a;

thanks

Edit
Report