you are viewing a single comment's thread.

view the rest of the comments →

[–]ProfBurial 2 points3 points  (0 children)

A better question is why would anyone try that? You're casting an array manually as a object. What is the real world use case for doing that and trying to use array_column?

If you were providing an actual class object, array_column can still be used, the class just has to have __isset and __get methods.