What is the purpose of the unset() function in PHP?

  • To destroy a session
  • To remove a cookie
  • To unset a variable
  • To clear the Memcached cache
The unset() function in PHP is used to unset a variable, freeing up the memory associated with it. This function can be used to remove a variable or an element of an array. Learn more: http://php.net/manual/en/function.unset.php
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *