chromephp icon indicating copy to clipboard operation
chromephp copied to clipboard

Associative array is shown as "Object", while simple array is shown as "Array"

Open skunkbad opened this issue 8 years ago • 1 comments

// Simple array shows up in console as "Array"
$arr = array('a','b','c');

// Associative array shows up in console as "Object"
$assoc = array('a' => 100, 'b' => 200, 'c' => 300);

It would be nice if the associative array would be shown as an array.

skunkbad avatar Jan 28 '17 03:01 skunkbad

I think that's because the console expects JS, and the only way to represent PHP assoc. arrays in JS are objects.

DanMan avatar Feb 03 '17 10:02 DanMan