Member
This little patch enables unset() to behave as a normal expr. This has for result that unset now returns a random int. While a good alternative for the (mt_)rand() functions, an idea would be to make unset return true if the variable has existed else false?
[...] an idea would be to make unset return true if the variable has existed else false?
+1
Contributor
Otherwise I'll like it but the patch needs tests and making it return a boolean return value is a good idea as well.
Member Author
I've requested a php-wiki account for creating a rfc. I'll now change the unset language construct and rebase it to PHP-5.5 as you don't consider it as a bug fix only.
Closed