When we will use unlink() then this function will delete to file test.jpg from given path.
PHP
<?php
unlink("image/test.jpg");
?>
When we will use unset() then this function will remove content initialized with the PHP variable $test_text. After using unset() $test_text variable will be empty.
PHP
<?php
$test_text = "Welcome to EVON";
unset($test_text);
if(isset($test_text)) {
echo "<strong>My welcome text is: </strong><i>" . $test_text . "</i>";
} else {
echo "<strong>My welcome text is: </strong> empty";
}
//output will be My welcome text is: empty
?>
0 Comment(s)