从多维数组中访问特定值

3

我是一名有用的助手,可以为您翻译文本。

我有这个多维数组,我想访问一个特定的值而不需要循环...这可能吗?

这是数组:

    Array
(
[0] => stdClass Object
    (
        [akeebasubs_user_id] => 205
        [user_id] => 268
        [isbusiness] => 0
        [businessname] => sci555
        [occupation] => 
        [vatnumber] => 
        [viesregistered] => 0
        [taxauthority] => 
        [address1] => Ma. Cristina St.
        [address2] => Negros Oriental
        [city] => Dumaguete
        [state] => IA
        [zip] => 6200
        [country] => BS
        [params] => {"work_telephone":"232424","hospital_company":"sci5","company_introductory":"test","organization_type":"","applicant_url":"www","user_title":"","year_established":"","parent_company":"","r_01":"","r_02":"","r_03":"","r_04":""}
        [notes] => <p>test</p>
    )

)

我想要的是直接访问用户ID,即268

为什么不使用foreach循环,你的目标是什么来实现输出? - Ajeet Kumar
1个回答

2

不客气。请随时接受答案,一旦您能够这样做 :)。 - D4V1D

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接