php php : How to unset a variable Posted on April 25, 2010 by Vishal Jain PHP allows to unset or undefine a variable by using the “unset” method. unset($variable); Click to share on LinkedIn (Opens in new window)Click to share on Twitter (Opens in new window)Click to share on Reddit (Opens in new window)Click to share on Pocket (Opens in new window)Click to share on Facebook (Opens in new window)Click to share on WhatsApp (Opens in new window)MoreClick to share on Telegram (Opens in new window)Click to share on Pinterest (Opens in new window)Click to share on Skype (Opens in new window)Click to share on Tumblr (Opens in new window)Click to print (Opens in new window)Click to email a link to a friend (Opens in new window) php, tips, undeclare, undefine, unset Vishal Jain View all posts by Vishal Jain →