Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
skunkbad opened this issue Jan 28, 2017 · 1 comment

Comments

@skunkbad
Copy link

skunkbad commented Jan 28, 2017

// 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.

@DanMan
Copy link

DanMan commented Feb 3, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants