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

file downloaded can't be read !!
<?php
$fileName = 'mypic.jpg';
$mimeType = 'image/jpeg';
header('content-dispositio

SCO Unix
I know this might not be the place to ask, but, can anyone tell me if SCO Unix comes with PHP built

How to display objects in a row
I have 7 codes that i want to display in a row one next to another.
The first is {$ads->ad

how to get IP address?
hey guys,

i have this code which is supposed to get me the IP address of my site visitors:

cURL proxy
Okay here is the thing... i know how to add proxys

Code: curl_setopt($ch, CURLOPT_PROXYTYPE,

Something like an INI editor or a DelimitedText-Editor
Hi all,

Am very, very, very new to PHP and not sure if I should be posting this to a Javascri

please help me in this update statment
hi every one

if I have table and this data in it

id name
10

Sessions Value Not Saved
Hi,

Im making a login form and im using this code:
Code: if($login=="true"){

cURL Upload Help
OK, I am creating a bridge from a local program to my website and I am trying to find the best way t

System copy error in RUN ABAP REPORT PHASE
Hi,
I am performing system copy on my test server. I have previously taken export of JAVA + A

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