What should I do if I want to output a certain array name with a three-digit array?
孙广宇
孙广宇 2019-01-24 16:31:27
0
2
1251

微信图片_20190124162926.png

孙广宇
孙广宇

reply all (1)
未完待续。。。

If you just output the two words 'Beijing':

$area = array(

'china' => array(

' 'Shanghai ',

', Hubei ',

##' Beijing '= & GT; Array (

##' HD '= & GT;'

##) ##) ##)

# )

);

//Get the key name, turn it into a one-dimensional array and then get the value

$new_arr = array_keys($area['china' ]);

//print_r($new_arr);

/*Array

(

[0] => 0

[1] => 1

[2] => Beijing

)*/

echo $new_arr[2];

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!