I am trying to dynamically set error reporting in PHP but I can't get the syntax right.
I tried :
ini_set('error_reporting',0);
and than this:
error_reporting(0);
But both are unable to stop the error reporting. Kindly tell me what mistake I am doing? Thank you.
(I am new to PHP and using this resource to learn PHP.)
EDIT: The Entire code is :
<?php
ini_set('error_reporting',0);
echo "hello world"
$value = "abc";
?>
<input type = "text" value = "<?php echo $value;?>">
I intentionally made a mistake in second line to study the error.