PHP: Check if variable exist but also if has a value equal to something - Stack Overflow

PHOTO EMBED

Tue Jul 25 2023 17:38:56 GMT+0000 (Coordinated Universal Time)

Saved by @mvieira

if ((isset($variable) ? $variable : null) == $value) { }
content_copyCOPY

https://stackoverflow.com/questions/4007752/php-check-if-variable-exist-but-also-if-has-a-value-equal-to-something