foreach result into a single variable


Posted on 16th Feb 2014 07:03 pm by admin

Hi,

I have this code...

Code: [Select]foreach ($_POST['Interests'] as $interest => $value) {
echo "Interests: $interest; Value: $value
";}
How do I store the multiple results in a single variable?

No comments posted yet

Your Answer:

Login to answer
329 Like 54 Dislike
Previous forums Next forums
Other forums

parsing error
can anyone explain this syntax error:

Parse error: syntax error, unexpected T_IF

The e

checkbox update
I am having a brain fart right now and i cant remember how to do this. if anyone could help that wou

passing data from one page to another
hey guys
i have the follwoing code to get information from one page and place on another:

Frustrated php Newbie
First off, I am pretty much a PHP nub. I can read and understand the language (most of the time) so

Using loop to count number of entries
I'm writing a program that must ask user to type in numbers. After each entry, the program has to re

Tree Menu
Hi guys,

Can anyone help me making a tree navigation system? I have a site where I'm allowin

mod_rewrite.c on windows ??
why it's not working on windows while it's working on other hosts???

this is the code i got

Sendmail.php - heading error following check_input
Hi,

I would greatly appreciate some help? I am brand new to PHP and have been searching and e

Word filter problem
Hello,

im trying to make a filter for words inputted in to my website but i want to store the

ALV sum various columns problem
Hi all,
I'm doing a report on ABAP for a timesheet of the current month. The output i want is s

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash