Finding PHP coding faults

Hi all, from your own personal use, what tool would you personally recommend for finding coding faults in PHP files please? Thanks. Dez.

Some of the better IDEs will highlight php errors for you. For example, PHPStorm, and NetBeans do syntax checking.

It depends on what you mean by “fault”

As WebMachine posted, some IDEs can find synax errors for you.

But as an extremely simple contrived example:

function return_greater($a, $b) {
 return min($a, $b);

will not be found as a syntax error, as it isn’t.

To find logic errors writing and using some form of unit testing is a good idea.

More work up front, but it can be a big time saver making debugging a lot easier later on.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.