In PHP I can loop through an array with a foreach as loop to examine the contents of the array
$array = array(...);
foreach($array as $K=>$V){
echo $K." = ".$V;
}
I would like to do something similar to inspect my javascript array
var array = new Array();
foreach(array ...){
window.alert(...);
}
how can I do this?
EDIT
I should have noted that I need both the keyname AND the value
EDIT AGAIN
var $_SESSION = new Array();
$_SESSION['pin'] = "asdf";
$_SESSION['something'] = "1234";
$_SESSION['something_else'] = "123";
here's an example of my array^