SharkBait Posted February 1, 2007 Share Posted February 1, 2007 What is the best delimiter to use to seperate fields that have been concatenated from user input? I've used ; (semi-colons) but the odd person has used it in their input and it buggers things up. I guess the other best thing to do would be str_replace() any ; that the user enters huh? (just thinking about that now). So any other suggestions? Quote Link to comment https://forums.phpfreaks.com/topic/36711-best-delimiter-for-online-use/ Share on other sites More sharing options...
Sir William Posted February 2, 2007 Share Posted February 2, 2007 A tab ( \t), tilde ( ~ ) or pipe ( | ) should work well and hardly if ever used by anybody. Quote Link to comment https://forums.phpfreaks.com/topic/36711-best-delimiter-for-online-use/#findComment-175242 Share on other sites More sharing options...
mb81 Posted February 2, 2007 Share Posted February 2, 2007 A tab ( \t), tilde ( ~ ) or pipe ( | ) should work well and hardly if ever used by anybody. Yes, I like pipes as well. Quote Link to comment https://forums.phpfreaks.com/topic/36711-best-delimiter-for-online-use/#findComment-175675 Share on other sites More sharing options...
SharkBait Posted February 2, 2007 Author Share Posted February 2, 2007 I was thinking pipes as well. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/36711-best-delimiter-for-online-use/#findComment-175684 Share on other sites More sharing options...
mb81 Posted February 2, 2007 Share Posted February 2, 2007 3-0, motion passed. Quote Link to comment https://forums.phpfreaks.com/topic/36711-best-delimiter-for-online-use/#findComment-175700 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.