Answers for "destroy item in php"

PHP
3

destroy php variable

<?php

$first = 100;
$second = 200;

$third = $first + $second;
echo "Sum = ".$third;
// Destroy a variable with unset function
unset($third);

//after delete the variable call it again to test
echo "Sum = ".$third;
?>
Posted by: Guest on August-23-2020

Browse Popular Code Answers by Language