gpt4 book ai didi

php - 隔离对象数组中的特定值列

转载 作者:行者123 更新时间:2023-12-02 05:12:19 24 4
gpt4 key购买 nike

<分区>

我有一个对象数组如下:

[0] => stdClass Object
(
[lid] => 2492
[post_title] => Winter League 2012/2013
[eid] => 2121
[etitle] => a 2013
[rid] => 2358
[rtitle] => sdcc2013_2M_W
[rtype] => W
)

[1] => stdClass Object
(
[lid] => 2492
[post_title] => Winter League 2012/2013
[eid] => 2121
[etitle] => a 2013
[rid] => 2359
[rtitle] => sdcc2013_4M_M
[rtype] => M
)

[2] => stdClass Object
(
[lid] => 2492
[post_title] => Winter League 2012/2013
[eid] => 2123
[etitle] => e 2013
[rid] => 2360
[rtitle] => eircom_Women_2.5Mile
[rtype] => W
)

[3] => stdClass Object
(
[lid] => 2492
[post_title] => Winter League 2012/2013
[eid] => 2123
[etitle] => e 2013
[rid] => 2362
[rtitle] => eircom2013_men_5mile
[rtype] => M
)

我想“获取”“删除”值的子集

 (2358,2359,1360,2362)

我应该使用哪个数组操作函数?

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com