PHP code example of wexample / php-html

1. Go to this page and download the library: Download wexample/php-html library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

wexample / php-html example snippets


sprintf('<%s%s>', $this->tagName, $attrs)
// → e.g. <link rel="stylesheet" href="/app.css">

public function render(): string
{
    return parent::render() . '</script>';
}