The regular php functions are not working perfectly with the special characters while fiding the position of them. substr function is not returning the correct position of the special chars like À,Á,Â, etc.
Our mission is to find the character exists in the string set or not.
Out program logic is, it should not allow any characters apart from this set. For this we have a loop to fetch the character one by one of the input string and find their position. If the input character position is not found in the set, then it should be considered as invalid.
Thanks,
eprm.
Main Topics
Browse All Topics





by: Ray_PaseurPosted on 2009-11-07 at 07:46:50ID: 25766659
This is not multi-byte data. You should be able to just use the regular PHP string functions.
Select allOpen in new window