holinhot
V2EX  ›  问与答

php 怎么取组里的值

  •  
  •   holinhot · Feb 24, 2016 · 1437 views
    This topic created in 3734 days ago, the information mentioned may be changed or developed.

    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

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2785 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 11:01 · PVG 19:01 · LAX 04:01 · JFK 07:01
    ♥ Do have faith in what you're doing.