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

xml element exists
Code: [Select]<?xml version="1.0"?>
<Addresses>
<

PHP Upload issue
Hi guys,

I have stumble across an interesting issue with my script and is doing my head in.

BB_Code error
I'm having a problem with a custom built function and keep getting this error:


Warning: M

Problems with strings containing
Hey all,

I have encountered something strange in a script. I am trying to write an XML heade

php web service error
hey guys,
I'm working on a project requires the use of web services. I've been trying a few tutor

How to get exact 3 moths post date from today date using javascript
How to get exact 3 moths post date from today date using javascript
Please help

True way to see if action was successful?
If this is a good way to see if action was successful to continue:

Code: function changeGa

Unable to customise toolbar in FCK
Advice on how to delete a mysql row using my form
Hi,

I am very new to php and am struggling to work out how to delete a portfolio item (a row

parse error
Parse error: syntax error, unexpected '[', expecting ')' in /Users/admin/Sites/phptest/array.php on

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