如何从php中的嵌套数组中获取值

UI *_*Dev 5 php arrays

当我通过post方法提交表单时,我得到这样的值为数组.

 array
 'custom_profile_type' => 
    array
       0 => string '39242' (length=5)
    'satori_programme' => string '0' (length=1)
Run Code Online (Sandbox Code Playgroud)

我想39242从上面的数组中获取值.怎么做到的?伙计们好吗?

Sha*_*ran 5

访问它像..

echo $yourarray['custom_profile_type'][0];
Run Code Online (Sandbox Code Playgroud)