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

Menu restriction
How can I restrict the individual menu that would appear when a user logs in so that all users are c

Can you help please? Php file
I have to write this php file to allow users to register their nicknames on nickserv

For an I

To add a field on the screen XK02.
Hi All,

How to add an additional field in the vendor change control screen XK02.
The

i have no idea why this isn't working
Code: <?php
session_start();
include("connect.php");

error_reporting(E

Multi Level Array Problem
hi all,

For example I have array like below:

$temp = array(array('north america', 'us'

Simple Question
I know this is a simple question, that if I knew what it was technically called i could probably loo

how do i make a string??
hey guys,
can someone please tell me how to put data from the glob function into a string

Contact Form Not Working When I Add Validation Codes
So I built my first working PHP "Contact Us" like form. But, I have been trying to now mak

Help with Password Encoding/Decoding?
Trying to design a "change password" tool. On my signup code I'm using base64_encode, now

How to show the difference between two data field in a database with php.
Hello php gurus,

how r u all... i'm not so well facing a typical problem please help me...<

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