I don't understand why empty() is returning true here
<pre><code>var_dump($r);
echo '&lt;br /&gt;&lt;br /&gt;';
echo $r[0]['minID'];
echo '&lt;br /&gt;&lt;br /&gt;';
echo empty($r);
</code></pre>

<p>This is the output:</p>

<pre><code>array(1) { [0]=&gt; array(1) { ["minID"]=&gt; string(2) "16" } } 

16

1
</code></pre>

<p>Can anyone explain this to me, I have to be missing something, I've been using empty for years and I've never seen it return true for a non-empty array.</p>

<p>Edit:</p>

<p>output of php --version</p>

<pre><code>PHP 5.3.3 (cli) (built: Feb 22 2013 02:51:11)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
</code></pre>

<p>This is on CentOS 6.4</p>

<p>Edit:</p>

<p>Figured it out, I'm a jackass.  I had several echo statements, and the last one was returning true legitimately.  Because I wasn't casting to int, the false wasn't showing and I was misinterpreting where the 1 was coming from.</p>
