<?php echo htmlize('p'); // <p> echo htmlize('input', ['checked' => null, 'class' => 'form-control']); // <input checked class="form-control"> echo htmlize('a', ['href' => 'http://example.com', 'target' => 'isevil'], 'foobar'); // <a href="http://example.com" target="isevil">foobar</a>