brad_langdon Posted October 19, 2009 Share Posted October 19, 2009 Hi, I have this code... foreach ($_POST['Interests'] as $interest => $value) { echo "Interests: $interest; Value: $value<br>";} How do I store the multiple results in a single variable? Quote Link to comment https://forums.phpfreaks.com/topic/178164-solved-foreach-result-into-a-single-variable/ Share on other sites More sharing options...
brad_langdon Posted October 19, 2009 Author Share Posted October 19, 2009 SOLVED... $interests = implode(', ', $_POST['Interests']); Quote Link to comment https://forums.phpfreaks.com/topic/178164-solved-foreach-result-into-a-single-variable/#findComment-939416 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.