Someone can explain to me if this "freak" behavior its what i should expect.
I'm debbuging some code and got this:
I geting some result on $data and create this if to be sure it's $data have some info.
So:
if(!$data || empty($data) || count($data) == 0)
And aways geting in the if.
So i do some var_dump to see and wow.
var_dump(!$data , empty($data) , count($data));
go this:
bool(true)
bool(true)
int(1)
how count data = 1 and !$data = true and empty($data) = true?
I hope isn't stupid question, i'm sorry if is.