Forum Moderators: coopster
Would you be able to give me a heads up on the functions available in php to
"step through a string and copy characters to a temporary string ONLY if they are NOT a space."
Reasons : I have a registration form where a user enters their tel number.
To locate their record later either the same user or different users enter the telephone number in a search form.
Users could be potentially anywhere is the world and I'm concerned that some will use spaces - others wont so..
A. when the initial user first keys their phone number I want to store it with NO spaces at all. Then when..
B. The search facility is being used by anyone - again I want to strip all spaces for the number entered and located the 'space less' phone number in the database.
Many thanks