/ LJCPHPCodeDoc / LJCHTMLLib / LJCHTML / GetHTMLBegin


Parameters
$textState - The current text state values.
$copyright - The copyright array.
$fileName - The HTML file name.

Returns

The HTML beginning text.

Syntax

PHP
public static function GetHTMLBegin(LJCTextState $textState
, array $copyright = null, string $fileName = null) : string

Gets the HTML beginning up to and including <head>.

Example

PHP
 // Gets the HTML beginning up to and including .
 public static function GetHTMLBegin()
 {
   // Root Method Begin
   $textState = new LJCTextState();
 
   $copyright = [
     "Copyright (c) John Q. Smith and Contributors",
     "Licensed under the MIT License.",
   ];
 
   // Example Method:
   $result = LJCHTML::GetHTMLBegin($textState, $copyright, "File.html");
 
   // result:
   // <!DOCTYPE html>
   // <!-- Copyright (c) John Q. Smith and Conributors. -->
   // <!-- Licensed under the MIT License. -->
   // <!-- File.html -->
   // <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
   // <head>
 }

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.