phatuis Posted December 12, 2009 Share Posted December 12, 2009 Hello, say: $explode = explode(" ", $data) I want to see if a variable is found in the data when exploded, and if found, return 1 piece of code, if no found another piece of code. Link to comment https://forums.phpfreaks.com/topic/184871-finding-data-in-an-exploded-term/ Share on other sites More sharing options...
rajivgonsalves Posted December 12, 2009 Share Posted December 12, 2009 you can use in_array on $explode http://php.net/manual/en/function.in-array.php Link to comment https://forums.phpfreaks.com/topic/184871-finding-data-in-an-exploded-term/#findComment-975905 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.