rfc:unset_bool

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
rfc:unset_bool [2013/03/07 12:08] – + use case bwoebirfc:unset_bool [2013/03/07 19:59] – + failure clarification bwoebi
Line 1: Line 1:
 ====== PHP RFC: unset(): return bool if the variable has existed ====== ====== PHP RFC: unset(): return bool if the variable has existed ======
-  * Version: 0.6+  * Version: 0.61
   * Date: 2013-03-06    * Date: 2013-03-06 
   * Author: Bob Weinand, bobwei9@hotmail.com   * Author: Bob Weinand, bobwei9@hotmail.com
Line 17: Line 17:
 Change unset()'s behaviour to: Change unset()'s behaviour to:
   * return true if deletion was successful   * return true if deletion was successful
-  * return false if deletion failed+  * return false if deletion failed (e.g. there was nothing to delete or the deleting function has failed)
  
 The feature could be useful in if's like: The feature could be useful in if's like:
Line 158: Line 158:
   * Version 0.52: echo may be also considered as a function...   * Version 0.52: echo may be also considered as a function...
   * Version 0.53: Added microbenchmark   * Version 0.53: Added microbenchmark
-  * Version 0.54: Added example real world use case+  * Version 0.6: Added example real world use case 
 +  * Version 0.61: Little clarification about failures
rfc/unset_bool.txt · Last modified: 2018/06/18 10:14 by cmb