pugs1501 Posted December 14, 2007 Share Posted December 14, 2007 I was wondering if you had a field that a user could put in different amounts of data, example first the users puts "I am home" and then the next time they put in "Today at work I was very busy". I want to explode this on spaces and then recombine it with underscores but I am not sure how to know how many array variables there are so i recombine the correct data. Thank you in advance for your help. Quote Link to comment https://forums.phpfreaks.com/topic/81602-solved-count-the-exploded-variable/ Share on other sites More sharing options...
phpSensei Posted December 14, 2007 Share Posted December 14, 2007 You mean str_replace(" ","_",$string); Quote Link to comment https://forums.phpfreaks.com/topic/81602-solved-count-the-exploded-variable/#findComment-414467 Share on other sites More sharing options...
pugs1501 Posted December 14, 2007 Author Share Posted December 14, 2007 yes that is exactly what I needed. thank you very much. Quote Link to comment https://forums.phpfreaks.com/topic/81602-solved-count-the-exploded-variable/#findComment-414470 Share on other sites More sharing options...
phpSensei Posted December 14, 2007 Share Posted December 14, 2007 yes that is exactly what I needed. thank you very much. Your Welcome Quote Link to comment https://forums.phpfreaks.com/topic/81602-solved-count-the-exploded-variable/#findComment-414474 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.