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

pointer 102 question
I read a book
1
2
3
4
5
6
7
8
9
10
11
12
int main() {

How to show next and prev records
Hi all,

Sorry if this is simple, i'm very new to php, well, any programming language actually

Using Windows message as a Handle
Hi,

I am writing one of my first multithreaded programs.

In one of the thread,

Add "width" check when upload
Hi!

Can someone add a function that is checking if picture witdh is bigger then 800px whwn up

Gerenate tabel in Php
I whant to generate a tabel takeing data from database like this one so the results to be display on

Anti Spam Code
Ok where do i start? Probably by telling you I have very little working knowledge of PHP and that I

connect() succeeds but accept() does not?
Please help me with this problem. I'm working on a time-sensitive project where I'm using TCP socket

Must-Know Topics of PHP
Can you guys list the must-know topics of PHP. I am still a learner and I am trying to cover most of

How to submit a form to the same page?
I have a table containing information about books in my library and this table has the following col

update post issues
I am trying to create an update to a post function, while the update does occur, the page routing an

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