Another live-code-example to share:
$ps=($_GET[ps]+1)-1;
(I’m pretty confident that intval is of more use.)