I have the following string which i need to convert to integer or bigint.
$test=\"99999977706\";
I tried:
echo (int)$test;
It can help you,
$token= sprintf("%.0f",$appdata['access_token'] );
you can refer with this link