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

BI in Upstream Production operations
Appreciate if you can assist in the following areas:
1) Examples of life before and after BI i

Access website from only 1 computer...?
One of my customers wants his website to only be accessed by people in which they bought the website

preg-match with a string and numbers
Hi, I can't get the expression to work for my preg_match, what I'd like is for it to match the strin

How to update this array?
I am saving a string that looks this: username1, username2, username3...
into a single cell in a

some questions
Hello,

I am looking for the answers for following questions:

1) Does PHP support overl

Polymorphism
Was wondering if someone could explain this a little better to me. I had always assumed that it had

Backflush
I am looking for a report in SAP that would give me a list of all parts that are populated with a ba

Handling text changed in text box control using Ajax
I need to create a web form with a text box control. When someone types text into the textbox I nee

Concatenate two strings ???
I have string one $string1 and another $string2.

How to concatenate (add) both of them $str

Page doesn't expand for content
Hi. I've been testing a query I made. It's here http://lapr1.6te.net/inquerito.php
The page doesn

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