how to debug a php code code example Example: how to debug in php ini_set('display_errors', 'On'); error_reporting(E_ALL);