PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
No, you need to use their multibyte equivalents: mb_strpos() and mb_substr(). Obviously these need the mbstring extension, but that's part of most default installations.
It doesn't seem to work as I would expect. For instance, this should return the last five characters after "サイト", but what I receive is "日本最大級" which is the first 5 characters of the string.