A useful addition is empty() which basically can be treated as isset (since it covers it) but for moments where you explictly don't seek to know whether the actual value is set.
empty() also works on object members, whilst isset() does not.
if (empty($object->member)) {
return true;
}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
A useful addition is
empty()
which basically can be treated asisset
(since it covers it) but for moments where you explictly don't seek to know whether the actual value is set.empty()
also works on object members, whilstisset()
does not.