Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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;
?>
 
PREVIOUS NEXT
Tagged: #destroy #php #variable
ADD COMMENT
Topic
Name
2+9 =