php > unset ($error);
php > echo (empty($error)) ? 'The string is empty' : 'The string has something in';
The string is empty
php > $error = "Something";
php > echo (empty($error)) ? 'The string is empty' : 'The string has something in';
The string has something in
php >
php > unset ($error);
php > echo (empty($error)) ? 'The string is empty' : 'The string has something in';
The string is empty
php > $error = "Something";
php > echo (empty($error)) ? 'The string is empty' : 'The string has something in';
The string has something in
php >