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)
{
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

paginate search result
Hi, I have a paginations script to display data from my database but i would like to paginate someon

PHP/PKI
I am trying to set up a web application that uses pki. does anyone have a good tutorial to set this

what business processes?
Hi,

A general question. What business processes (like OTC - Order to Cach, P2P, R2R etc)

Validating time
Hi Guys

what do you think of the following approach to validate a 24hour time:

http://

Losing 'page' data
I have this code that allows me to update my database. But after updating, I lose the $_GET['page']

Replacing a string on click of a button
Hi! Is there a way to replace a string on a click of a text link?

This is what I've come up w

Ajax not working on IE 6 for Windows CE
I've created a webpage which uses the classis Ajax in following format:view plaincopy to clipboardpr

Need help with PHP/MySQL drop down menu
I need help on how I can implement a drop down menu which queries mysql database and output the avai

Uploading Filetypes and placing them in seperate folders.
Hello,

first post , and asking for help im afraid. Very new to PHP, was making good progress

my code does not work.
I have a code problem.

Quote"<a href=index.php?gogo=ureticidetay&'?l={$le

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