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" Link to comment https://forums.phpfreaks.com/topic/58932-how-do-i-use-php-to-detect-whitespace/ 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 Link to comment https://forums.phpfreaks.com/topic/58932-how-do-i-use-php-to-detect-whitespace/#findComment-292438 Share on other sites More sharing options...
jd2007 Posted July 8, 2007 Author Share Posted July 8, 2007 thanks buddy ! Link to comment https://forums.phpfreaks.com/topic/58932-how-do-i-use-php-to-detect-whitespace/#findComment-292441 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.