You can open the file in the PHP editor, it will help to show the error line and mark it in red color. It will be helpful in fixing the errors in PHP files
Some web hosting file editors have featured as well to fix PHP error file
Some free editors are netbeans and visual studio code