Use the increment operator.
$var = 0;
$var++;
Now, I'm assuming you're using this in some script with a control operation or loop. You also need to figure out a way to save the value if you want to keep it for future use. Once the script ends, the variable goes away.