Get keys and values from an array


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

Hellow,

I have an array $Data with keys and values. With a foreach I can display all the values:
foreach($Data as $var)
Did you know?Explore Trending and Topic pages for more stories like this.
{
echo $var;
}

but I also want to display al the keys... how can i do that?
No comments posted yet

Your Answer:

Login to answer
154 Like 35 Dislike
Previous forums Next forums
Other forums

j1inmis Ouput layout changes
Hi,

Can anybody tell how can j1inmis output layout can be changed so that vendor names ge

Unique Visitor Tracking
Hello. Currently, I run a voting site where voters are tracked by their IP address and can only vote

Php - mysql store data and use it later?
Hi, i' making a login page at the moment, however my username + password is stored many different pl

Issues: PHP Forms -Clearing
I've tried looking online before actually asking for help, but I've been looking for about the past

Pre-Fill out a PHP form...??
This is for work actually (geek squad). We have to fill out this online php form at work over and ov

Request for tunning the below query
Hi,

Can any one help me on the below query while improving the performance,

Form validation with functions
Hi there

I am trying to make a very simple form validation function. I currently have the fol

A Few Questions
Hi, I want to ask a few questions that I can't seem to find..

1) I'm creating a "shortcu

need help in update query
i create a form for update. there are 8 columns in my mysql table. on my main page all the data is r

Include ("Absolute Path") of a file?
I'm not sure what I'm doing wrong. I am writing my php code in the same directory of the file that

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