empty

PHP 4, PHP 5, PHP 7, PHP 8
empty - Determine whether a variable is empty
Manual
Code Examples

Example #1 empty on String Offsets

Result: bool(true) bool(false) bool(false) bool(false) bool(true) bool(true)
PHP Version:

Example #2 A simple empty / isset comparison.

PHP Version: