-
Notifications
You must be signed in to change notification settings - Fork 89
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
What's the best way to get the map as an array that contains all the keys and values #14
Comments
I was vary of adding such a method because it would have made it impossible to allow objects as keys. However since PHP 5.5 now also allows objects as array keys, I think we could add it. |
Cool, so how will it be done? |
It would be great, because that means I don't have to rely on the internals of the Map class. Right now I'm directly accessing |
Can you create a pull request which adds the all() method? On Tue, Apr 8, 2014 at 12:46 AM, Roger Qiu notifications@github.com wrote:
|
Just all or getAll()? |
Any chance of getting a minor release? |
Something like
I know you can just iterator_to_array($map). But I'm actually extending from the Map class, and I need to return the keys and values as the total array from a child class.
The text was updated successfully, but these errors were encountered: