# array_column bug and its fix

- Thread: https://externals.io/message/66874
- Original archive: https://news-web.php.net/php.internals/66874
- Started by Jakub Zelenka on 2013-03-31T20:14:44+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #66874 — Jakub Zelenka — 2013-03-31T20:14:44+00:00

URL: https://externals.io/message/66874#66874

Hi,

there seems to be a bug in array_column function. Look at this:

http://3v4l.org/kZahr

The variables $column_key and $index_key are strings after calling
array_column which is probably wrong... :)

I have fixed that - pull request:

https://github.com/php/php-src/pull/316

Regards

Jakub
