jd2007 Posted July 8, 2007 Share Posted July 8, 2007 How do i use php to detect whitespace and convert text before whitespace and text after whitespace into array ? for e.g. when someone types "hello world" into a text box, it inserts the words "hello" and "world" into an array. so array[0] will be "hello" and array[1] will be "world" Quote Link to comment Share on other sites More sharing options...
sinisake Posted July 8, 2007 Share Posted July 8, 2007 $word="Hey Hey and hey again"; $word_array=explode(" ",$word); print_r($word_array); http://www.php.net/explode Quote Link to comment Share on other sites More sharing options...
jd2007 Posted July 8, 2007 Author Share Posted July 8, 2007 thanks buddy ! Quote Link to comment 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.