multidimensional array with only one value, how to get properly the value?
<p>I work with a CMS (Drupal 8). It automatically generates some multidimensional array with an unique value, like this : </p>

<pre><code>//var_dump of my $array
array (size=1)
  0 =&gt; 
    array (size=1)
      'value' =&gt; string '50' (length=2)
</code></pre>

<p>To date, I use this ugly way for automatically get the value (in example : "50") of these arrays : </p>

<pre><code>array_shift(array_values(array_shift(array_values($array))))
</code></pre>

<p>My question is, is there a better way in php for get that ? </p>