1.

How to do syntax checking using PHP?

Answer»

Here are some steps you can follow to CHECK the syntax of PHP. Ensure PHP CLI is installed on your MACHINE. Browse to the relevant folder where the code is. Run the COMMAND php -L testfile.phpvia command line.

This will detect any syntax ERRORS in the code and display on a terminal



Discussion

No Comment Found