What is the difference between session_unregister() and session_unset()?
- session_unregister()
- session_unset()
- Both functions are the same
- session_unregister() is deprecated
The session_unregister() function is deprecated and no longer used. session_unset() is used to unset all session variables. Learn more: http://php.net/manual/en/function.session-unset.php
Loading...
Related Quiz
- You have multiple conditions in your PHP script and you want to test each one in order. How would you do this using if, elseif, and else statements?
- The filter_var() function with the FILTER_SANITIZE_STRING filter is used to sanitize a string in PHP.
- What is the purpose of the array_push() function in PHP?
- What can be potential issues when working with the $_REQUEST superglobal in PHP?
- You can use Regular Expressions in PHP to validate email addresses.