PHP code example of thipages / quicktag

1. Go to this page and download the library: Download thipages/quicktag 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/ */

    

thipages / quicktag example snippets


    // *************
    // CONTENT TAGS
    // *************
    QTag::tag ($tag, ...$map)($content) : String
    QTag::tag ($tag, ...$map1)($content,$map2]) : String
    // *************
    // VOID TAGS
    // *************
    QTag::tag ($tag, ...$map):String

$blue=['style'=>'color:blue'];

$html=QTag::tag('span',$blue)('Hello QTag');
/* <span style="color:blue">Hello QTag</span> */

$html=QTag::tag('input', ['type'=>'num','min'=>2]);
/* <input type="num" min="2" /> */

    QTag::tag ($tag, ...$map1)[($content, ...$map2, true)]n($content, ...$mapN) : String

$blue=['style'=>'color:blue'];

$template=QTag::tag('span',$blue)('Hello QTag', true);
$html=$template('...and more");
/* <span style="color:blue">Hello QTag...and more</span> */

    QTag::tag ($tag, ...$map1, true)[(...$map2, true)]n(...$mapN) : String

$blue=['style'=>'color:blue'];
$min=['min'=>2];

$template=QTag::tag('input',$blue, true);
$html=$template($min);
/* <input style="color:blue" min="2"/> */