I have to determine the position of a special character in the string for example:
E77eF/74/VA on 6 and 9 position (counting from 1) we have '/' so I have to change them to position number -> E77eF6749VA
On MSSQL I could use PATINDEX but I need to use php for this. It should work for everything except 0-9a-zA-Z
I found strpos()
and strrpos()
on php.net but I doens't work well for me.
Anyway tries to do something like that?