php8.5
Home/ Manual/ stats / functions/ stats_stat_percentile

stats_stat_percentile

PHP function Edit on GitHub ✎

(PECL stats >= 1.0.0)

Returns the percentile value

Description

stats_stat_percentile(array $arr, float $perc): float

Returns the perc-th percentile value of the array arr.

Parameters

arr

The input array

perc

The percentile

Return Values

Returns the percentile values of the input array.

Source: reference/stats/functions/stats-stat-percentile.xml · from the official PHP manual (php/doc-en)