title: how to remove indexes form an array in php?
body: <p>I am looking to except single element from array. My array is:</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [0] =&gt; Array
                  (
                      [COUNT(ID)] =&gt; 0
                  )
          )
  )
  </code></pre>
  
  <p>I have already use PHP functions <code>basename</code> and <code>array_shift</code>, but they didn't give me proper value. I want only single string <code>COUNT(ID)</code> value.</p>
  
  <p>Here is my function using in cakephp model:</p>
  
  <pre><code>$res = $this-&gt;query("select COUNT(ID) from users where Username = '".$Username['Username']."'");
  if ($res[0][0]['COUNT(ID)'] &gt;= 1)
  {
      return false; 
  }
  else
  {
      return true;
  }
  </code></pre>
  
  <p>I don't need <code>$res[0][0]</code>, I need only <code>COUNT[ID]</code>. Is there any easy way to find only <code>COUNT[ID]</code>.</p>