如何在数组中查找空括号的最后一个值 [英] How to find the last value of empty bracket in array
本文介绍了如何在数组中查找空括号的最后一个值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好:
如果我有一个像这样的数组,可以帮我吗?
$ mean_array [$ elements [$ x] ["priority_level"]] [] = $ elements [$ x];
每当我想在其中存储某物时,它都会增加
我怎么才能找到最后一个数字..据我所知,如果没有指定键,则采用现有整数索引的最大值,而新键将是最大值加1 ...所以我应该如何找到最后一个值?
Hi ALL:
Can you help me on if I have an array like:
$mean_array[$elements[$x]["priority_level"]][]=$elements[$x];
everytime it will increase when I want to store sth in it
how can I find the last number..as I know if no key is specified, the maximum of the existing integer indices is taken, and the new key will be that maximum value plus 1...so how should I find the last value?
推荐答案
mean_array
mean_array
元素
x] ["priority_level"]] [] =
x]["priority_level"]][]=
这篇关于如何在数组中查找空括号的最后一个值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文