php suppress warnings and notices in code code example
Example: how to remove notice error in php
ini_set('display_errors', 0);
ini_set('display_startup_errors', 0);
ini_set('display_errors', 0);
ini_set('display_startup_errors', 0);