[php-src] PR #18994: Make parameter $column_key optional in array_column()

From: Date: Tue, 01 Jul 2025 10:11:14 +0000
Subject: [php-src] PR #18994: Make parameter $column_key optional in array_column()
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-32266@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/18994 Author: vudaltsov Quite often in my code I reindex object collections via array_column. However, I have to explicitly pass null to $column_key instead of skipping it. Here's a change that makes possible this: ```diff - array_column($objects, null, 'name'); + array_column($objects, index_key: 'name'); ``` Does it require a discussion in internals or an RFC?

« previous php.git-pulls (#32266) next »