Answers for "php unset"

PHP
2

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
3

php unset

// Destroy a variable
<?php
unset ($var1, $var2.... )
?>
Posted by: Guest on April-14-2020
0

unset php

//remove variable
unset($var1,$var2,$var3;
//remove array
unset($array['$key']);
Posted by: Guest on October-08-2021
0

php reset variable value

unset (var1, var2.... )
Posted by: Guest on March-30-2020

Browse Popular Code Answers by Language