Soldato
- Joined
- 24 Nov 2002
- Posts
- 16,376
- Location
- 38.744281°N 104.846806°W
... I'm having one... partly as str_replace as no offset vars.
I have a string such as the following:
absfasdfasf--------------sf3ssafasf--------4asdfsdfasdfasdfasf.......
I want the position of the '3' (strpos) BUT, with all the hyphens before it removed:
absfasdfasfsf3ssafasf--------4asdfsdfasdfasdfasf.......
Likewise, for 4:
absfasdfasfsf3ssafasf4asdfsdfasdfasdfasf.......
I'm stuck
I have a string such as the following:
absfasdfasf--------------sf3ssafasf--------4asdfsdfasdfasdfasf.......
I want the position of the '3' (strpos) BUT, with all the hyphens before it removed:
absfasdfasfsf3ssafasf--------4asdfsdfasdfasdfasf.......
Likewise, for 4:
absfasdfasfsf3ssafasf4asdfsdfasdfasdfasf.......
I'm stuck
