Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在结果之间获取最大值?
例如,我想从结果“1-3”中获取最大“C”值。
success: true message: "" result: 0: C: 333 1: C: 332 2: C: 331.85 3: C: 331.5 4: C: 333.75249964 5: C: 333.68499948
嗨,您是否尝试遵循此 答案?
$max= max(array_column($result, 'C'));
如果您使用原生 PHP 函数,您将获得性能提升。