Unset readonly variable in bash

Actually, you can unset a readonly variable. but I must warn that this is a hacky method. Adding this answer, only as information, not as a recommendation. Use it at your own risk. Tested on ubuntu 13.04, bash 4.2.45. This method involves knowing a bit of bash source code & it’s inherited from this answer. … Read more

Deleting an element from an array in PHP

There are different ways to delete an array element, where some are more useful for some specific tasks than others. Deleting a single array element If you want to delete just one array element you can use unset() or alternatively \array_splice(). If you know the value and don’t know the key to delete the element … Read more