PHP array_column() not returning object falsy values
<p>I'm sure this is expected behavior for <code>array_column()</code>:</p>

<pre><code>class myObj {
    public $prop;
    public function __construct(int $prop) {
        $this-&gt;prop = $prop;
    }
}

$objects = [
    new myObj(7),
    new myObj(3),
    new myObj(8),
    new myObj(0),
    new myObj(2),
    new myObj(6)
];

echo '&lt;pre&gt;';
print_r(array_column($objects, 'prop'));
echo '&lt;/pre&gt;';
</code></pre>

<p>Returns:</p>

<pre><code>Array (
    [0] =&gt; 7
    [1] =&gt; 3
    [2] =&gt; 8
    [3] =&gt; 2
    [4] =&gt; 6
)
</code></pre>

<p>The <code>0</code> is missing. Maybe it uses <code>empty()</code> internally..?</p>

<p>Why would it not return falsy values when <code>0</code> and <code>false</code> can be normal valid object property values, and <code>array_column()</code> is meant for returning values..?</p>

<p>What's the best work around..?</p>