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? 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. 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. 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! 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. 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
Archived
This topic is now archived and is closed to further replies.