Answer the question
In order to leave comments, you need to log in
How to find the sum of values of elements of nested associative arrays by key?
Please tell me the easiest way to find the sum of all 'prise' keys.
<?php
$array =[
['name' => 'Name1',
'model => 'Model',
'price => 130,
],
['name' => 'Name2',
'model => 'Model2';
'price' => 120,
],
]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question