I am retrieving some data from an in-house store and in case of failure, I get a very specific response. Calling strlen()
on this variable returns the value of zero. It is also not equal to NULL or "". I'm using this code to test:
if ($data === NULL)
{
echo("data was null\n");
}
else if ($data === "")
{
echo("data was empty string\n");
}
else if (strlen($data) == 0)
{
echo("data was length zero\n");
}
This result is outputting data was length zero
. What could the variable contain that is zero length, not null, and not the empty string?