This is the way that experienced PHPers will use to solve the problem
1. Look at the error output, check the source code from the output item, and add debugging code in the context of the source code. The code can be the simplest
$debuglineno = __LINE__;
die($debuglineno);
2. Search Google or Baidu according to the error output
Wrong approach:
1. Ask your superior or colleague directly
2. Directly! Go to the forum to ask for help instead of checking it yourself first
3. Instead of analyzing the problem, complain