ok,i've solved the problem myself , look here:
function scot($nr)
{
$rez=0;
while($nr>20)
{
$rez=$nr%10+$rez*10;
$nr=$nr/10;
$nr=floor($nr);
};
return $rez;
};
function inv($nr)
{
$rez=0;
while($nr>0)
{
$rez=$nr%10+$rez*10;
$nr=$nr/10;
$nr=floor($nr);
};
return $rez;
};
print(inv(scot(201234567)));
returns 1234567;
THIS IS THE BEST FORUM EVER!!!
KEEP UP THE GOOOOD WORK!!