DefHTMLFooterByName()
(mPDF ≥ 2.0)
DefHTMLFooterByName – Define an HTML page footer with a given name
Description
void DefHTMLFooterByName ( string $name [, string $html ])
Define an HTML page footer with a given name. Named footers can be referenced and set later in the document e.g. SetHTMLFooterByName()
Note: Do not name any header or footer starting with html_
This prefix is reserved to identify an
HTML header/footer when passing its name in a reference.
Note: This function/method was altered in mPDF 2.2 by capitalising the first letter of the name. As function/method names in PHP have hitherto been case-insensitive, this should not cause any problems, but it is recommended where possible to use the preferred spelling.
Parameters
- $name
-
User-defined name for the footer. If $name
= ''
(blank) the name_default
is used. - $html
-
This parameter specifies the content of the page footer as a string of valid HTML code.
Default: BLANK
Changelog
Version | Description |
---|---|
2.0 | The function was added. |
Examples
For examples and further information please see: