Notice: Undefined variable: example in \xampp\htdocs\example.php on line 19
[/align]
Parse error: syntax error, unexpected '<' in \xampp\htdocs\example.php on line 22
[/align]
<?php
echo "$example"; //$example variable doesn't exist so we get error!
?>
Notice: Undefined variable: example in \xampp\htdocs\example.php on line 8
function Error() //We create a function named "Error"
{
die("Variable cannot be found<br>"); //Script ends and displays the message "Variable cannot be found"
}
set_error_handler("Error"); //We set our function as error handler!
<?php
function Error() //We create a function named "Error"
{
die("Variable cannot be found<br>"); //Script ends and displays the message "Variable cannot be found"
}
set_error_handler("Error");//We set our function as error handler!
echo "$example"; //$example variable doesn't exist so we get error!
?>
Variable cannot be found
Copyright © 2024, NextGenUpdate.
All Rights Reserved.