I know 0 is an integer, and
if((int)$some_data)
will return true(1) if the input is an integer and false(0) if not. I was trying to find whether 0 is a integer or not using a if condition, and the a simple example is here
$input= 0;
if((int)$input)
echo "Yes";
else
echo "No";
when I run this code, It returns "No", which means if condition returns 0 is not an integer. And I know that happens because
(int)0 returns 0
which means if(0) always returns false condition
so how can I find whether 0 is a integer or not. I don't know the question is duplicate or not, but I googled and still couldn't found a satisfying answer. If someone explain how to find whether 0 is int or not. Thanks in advance.