I do this $page->number()-isNotEmpty()
but when the value is set to zero it acts as if it’s empty which it’s not. How can I fix this?
Thanks
I do this $page->number()-isNotEmpty()
but when the value is set to zero it acts as if it’s empty which it’s not. How can I fix this?
Thanks
“0” is regarded as empty()
in PHP: PHP: empty - Manual
You can do this instead:
if($page->number() != '') {
echo "not empty";
}