array_column
thermage/thermage
Supported Versions: PHP 5 >= 5.5.0, PHP 7, PHP 8
Return the values from a single column in the input array
array_column
(array
$array
,
int
|
string
|
null $column_key
,
int
|
string
|
null $index_key
=
null
): array
$borderCharacter
= (
$hasBorder
() ?
$theme
->
getVariables
()->
get
(
'chart.borders.'
.
$borderStyle
.
'.top'
) :
$theme
->
getVariables
()->
get
(
'chart.borders.thin.top'
));
$total
=
array_sum
(
array_column
(
$chartData
,
'value'
));
foreach (
$chartData
as
$key
=>
$value
) {
src/Elements/Chart.php