Simple number count in PHP

Job ID: 35546475

Budget: $2 – $3 USD

I just want to show when
$x = 1, then show 2 (continuing like 1 means 2, 2 means 3)

on the other hand, if I want, then I need to get the previous number.

$x = 1, then show 0, (continuing like 2 means 1, 3 means 2)

My budget is only $1.
Related categories: PHP Programming