Convert a string to ascii
Posted: Fri Aug 15, 2008 4:27 pm
I am trying to send user inputted text from server to server and the most logical way to do it seems to be to convert the string being sent to a safe format containing only safe characters. After some research I think that ASCII would be the best as it only contains &,#,numbers and ; which won't disrupt anything (will it?).
Is there a function to convert a string to ascii and another to convert back or do I have to do a series of str_replace() for all of the ascii characters?
Thanks to anyone who helps me out!
Is there a function to convert a string to ascii and another to convert back or do I have to do a series of str_replace() for all of the ascii characters?
Thanks to anyone who helps me out!