how to debug in php
snippet in php

how to debug in php

user4706

ini_set('display_errors', 'On');
error_reporting(E_ALL);

php best debugging functions

user601

<?php
$myVar = "hello world!";

var_dump($myVar);
print_r($myVar);

$allVars = get_defined_vars();
print_r($allVars);
debug_zval_dump($allVars);

function sayHello($hello) {
    echo $hello;
    debug_print_backtrace();
}

sayHello($myVar);
?>

how to debug php

user4948

phpinfo();