doc-en icon indicating copy to clipboard operation
doc-en copied to clipboard

Add earlier hint about array_column supporting objects

Open Seldaek opened this issue 1 year ago • 2 comments

I know it says below in the parameter description, but tbh I didn't read that far before I assumed this only worked for arrays :D

Seldaek avatar Jul 11 '24 09:07 Seldaek

As a user, reading the current documentation, I might wonder what a "column of an array" is (after all, there are no real multidimensional arrays in PHP). While the description of the array parameter clarifies that, the function description just repeats that "column of an array". Maybe that section should be updated to clarify what is meant by that, instead of changing the refpurpose (which is supposed to be as short as possible).

cmb69 avatar Jul 11 '24 10:07 cmb69

Yeah I am not sure how to best describe all these things in a consistent way per the docs, but this reads fairly confusing I agree.

Seldaek avatar Jul 11 '24 10:07 Seldaek