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); Share on LinkedIn (Opens in new window) LinkedIn Share on X (Opens in new window) X Share on Reddit (Opens in new window) Reddit Share on Facebook (Opens in new window) Facebook Share on WhatsApp (Opens in new window) WhatsApp More Share on Telegram (Opens in new window) Telegram Share on Pinterest (Opens in new window) Pinterest Share on Tumblr (Opens in new window) Tumblr Print (Opens in new window) Print Email a link to a friend (Opens in new window) Email php, tips, undeclare, undefine, unset Vishal Jain View all posts by Vishal Jain →