I would love to see a use case in php for type casting to (unset)

Update:2017-07-13 This seems to confirm there is no use for (unset) since it is slated for deprecation in 7.2 🙂

https://wiki.php.net/rfc/deprecations_php_7_2#unset_cast

php > $var = "hello world";
php > var_export((unset) $var);
NULL
php > var_export($var);
'hello world'

http://php.net/manual/en/language.types.type-juggling.php