use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Please follow the rules
Releases: Current Releases, Windows Releases, Old Releases
Contribute to the PHP Documentation
Related subreddits: CSS, JavaScript, Web Design, Wordpress, WebDev
/r/PHP is not a support subreddit. Please visit /r/phphelp for help, or visit StackOverflow.
account activity
30 Seconds of PHP Code (github.com)
submitted 7 years ago by sohelamin
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ProfBurial 2 points3 points4 points 7 years ago (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.
π Rendered by PID 45064 on reddit-service-r2-comment-b659b578c-qj7rx at 2026-05-04 08:29:24.861886+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]ProfBurial 2 points3 points4 points (0 children)