Sr. PHP Programmer Question: Download Senior PHP Programmer PDF
How will you unset a single session variable?
Answer:
Here is the example to unset a single variable −
<?php
unset($_SESSION['counter']);
?>
<?php
unset($_SESSION['counter']);
?>
Previous Question | Next Question |
How will you get cookies using PHP? | How will you get information sent via post method in PHP? |