Page 1 of 1

How to find the number of a given location.

Posted: Thu Sep 17, 2009 8:04 am
by darkhorn
I have a big number such as 56781236 (8 digits long).
And I want to find the integer that is in the fourth step, here it is 1.
Or it could be from left, the fifth: 1.

Re: How to find the number of a given location.

Posted: Thu Sep 17, 2009 9:51 am
by jackpf
You mean like this?

Code: Select all

substr($int, 4, 1);