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

listing help
Hi,

at first, great new design!!! I like it,

i got a problem,

I want to list so

Add weeks in a query?
I have a SQL that summarizes the quantity per week. The weeks that has no value does not exist in th

Add code to enable passing of checkbox variable on login
Ok, I have a login page, but want to add a checkbox that when checked and successful login is made i

PHP page loading in Firefox but not in IE
hello,

i am currently doing a project in PHP and i have a problem. If I view the project in M

date("now") prints out wrong date ?
Hi Guys
Anyone know why and how I can fix it ?

array_combine() error
getting an "Warning: array_combine() [function.array-combine]: Both parameters should have an e

Linkage between two scripts
Okay say I have this for a link in a script:

Code: <li><a href="#&q

Hits this week counter
I have a counter on my site that tracks hits, IP's, etc. into a mySQL database. It also includes the

TemplatePower & AJAX
Hi all,



I'm currently implementing some AJAX features in my PHP-framework (which is b

Multiple Dropdown Selections
I have a form that let's a user insert a page with the ability to select categories. I want them to

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