Sr. PHP Programmer Question: Download Senior PHP Programmer PDF

How will you unset a single session variable?

Tweet Share WhatsApp

Answer:

Here is the example to unset a single variable −

<?php
unset($_SESSION['counter']);
?>

Download Senior PHP Programmer PDF Read All 202 Senior PHP Programmer Questions
Previous QuestionNext Question
How will you get cookies using PHP?How will you get information sent via post method in PHP?