For example you have a number like "11956576835". If you try nth digit from a number like this, you can simply:
echo substr("11956576835",3,1);
But for the performance is it better to use a math function like this for performance?
echo (11956576835/pow(10,0))%10;
Thank you all for any response...
Update: thanks to marcus, the fastest solution to access a string as an array. http://codepad.viper-7.com/v8elnt i.e:
$number = "11956576835";
echo $number[3];