V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
holinhot
V2EX  ›  问与答

php 怎么取组里的值

  •  
  •   holinhot · 2016-02-24 01:57:51 +08:00 · 1120 次点击
    这是一个创建于 2990 天前的主题,其中的信息可能已经有所发展或是发生改变。

    Array
    (
    [list-instancesresponse] => Array
    (
    [requestid] => 0FA02641-0DE4-DB43-EEA0-10BCCF0E987A
    [instancesSet] => Array
    (
    [item] => Array
    (
    [cu_id] => 71993
    [vm_status] => RUNNING
    [vm_ip_address] => 10.10.10.102
    [vm_created_date] => 1456249087
    [rate_per_hr] => 0.0068
    [vm_image] => ubuntu-14.04_64bit
    [vm_name] => 102
    [vm_image_display_name] => Ubuntu 14.04 LTS Server 64-Bit
    [vm_ram_req] => 512
    [vm_cpu_req] => 1
    [vm_disk_req] => 20
    [vm_network_req] => 1
    [vm_bandwidth] => 600
    [vm_os_architecture] => 64
    [vm_plan_name] => XS
    [vm_description] => test1
    [InstanceId] => 102
    )

    [1item] => Array
                        (
                            [cu_id] => 71993
                            [vm_status] => RUNNING
                            [vm_ip_address] => 10.10.10.102
                            [vm_created_date] => 1456248612
                            [rate_per_hr] => 0.0068
                            [vm_image] => ubuntu-14.04_64bit
                            [vm_name] => 103
                            [vm_image_display_name] => Ubuntu 14.04 LTS Server 64-Bit
                            [vm_ram_req] => 512
                            [vm_cpu_req] => 1
                            [vm_disk_req] => 20
                            [vm_network_req] => 1
                            [vm_bandwidth] => 600
                            [vm_os_architecture] => 64
                            [vm_plan_name] => XS
                            [vm_description] => test2
                            [InstanceId] => 103
                        )
    
    
    
    
                )
    
        )
    
    [Timestamp] => 1456250161
    

    )

    比如取里面的 ip
    vm_ip_address

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2295 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 09:00 · PVG 17:00 · LAX 02:00 · JFK 05:00
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.