How do I rotate the digits of integer? Here are sample inputs and Outputs:
12345 10901
51234 11090
$x = chop($x) . $x;
or
$x = substr("$x$x",length($x)-1,length($x))