PHP code example of petrgrishin / yii-html-tag
1. Go to this page and download the library: Download petrgrishin/yii-html-tag 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/ */
petrgrishin / yii-html-tag example snippets
use \PetrGrishin\HtmlTag\HtmlTag;
$tag = HtmlTag::create(HtmlTag::TAG_DIV, array('class' => 'content'))->begin();
$tag->addClass('well');
print('content');
$tag->end();
// output: <div class="content well">content</div>