What is the significance of declaring FPDF before the FPDF_TPL class in PHP?

Declaring FPDF before the FPDF_TPL class in PHP is significant because the FPDF_TPL class extends the FPDF class. Therefore, the FPDF class needs to be defined first in order for the FPDF_TPL class to inherit its properties and methods correctly. This ensures that the FPDF_TPL class can utilize all the functionalities provided by the FPDF class.

require('fpdf.php');
require('fpdf_tpl.php');

// Your code using FPDF and FPDF_TPL classes can go here