foreach result into a single variable


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

Hi,

I have this code...

Did you know?Explore Trending and Topic pages for more stories like this.
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

Update Database
Hi All,


I have a problem with this:

Code: [Select]<?php
session_start();

Form a inline view based on the results of the previous query?
Hi Experts,
Can we form a inline view on the results of a previous query (another inline view)?

Session is not saving
I am not trying to do anything too fancy, I am just trying to get some $_SESSION data to save and us

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

Join Query Help
Hi all,

I am having problems with the below code, which we shall call 'my first join query'!

Syntax error
hi im having a little trobble with this script
-------------------------------------------------

include
Hi I have this way of licensing my PHP application, and I want to know if you guys can answer some q

empty() error
Why does

Code: empty($USER_ID = $_SESSION["USER_ID"])
create this error...

Extract specific information from a PHP Multidimensional Array
Howdy! I've racked my brain over this for 24 hours now. I think it's time I asked for help. I'm lear

Show specific day of the week
I have been racking my brain trying to get this function to work properly and it is doing so for eve

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