how can I remove error messages without modify php.ini file

Fix the problems. Anything in specific?

its just a interview quetion some one ask me in interview
i know we can edit in php.ini file display_error to "no" so the error are not display but they ask me without changing in php.ini file how can we are not display errors in php file

by coding correctly? i guess ^_^

ini_set() function can override values set in PHP.INI

Extending pritaeas' answer... you could use this:

<?php
    // This goes at the TOP of your file(s).
    ini_set("display_errors", false);
    error_reporting(0);

right,
php.ini file display_error to "no" so the error are not display but they ask me without changing in php.ini file how can we are not display errors in php file