[php-src] Issue #8183: New functions array_avg and array_median

From: Date: Wed, 16 Mar 2022 11:33:57 +0000
Subject: [php-src] Issue #8183: New functions array_avg and array_median
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-240361@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8183 Comment Author: niconoe- > > ``` > > function array_median(array $array): float > > ``` > > This polyfill is not correct, because it assumes that the input array is sorted. True. Maybe that's an additionnal reason to have those new functions internally: avoid errors functions in userland could bring by an incomplete implementation... :smile:

« previous php.bugs (#240361) next »