If you just output the two words 'Beijing':
$area = array(
'china' => array(
' 'Shanghai ',
', Hubei ',
##' 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];
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];