PHP code example of drewm / selecta

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

    

drewm / selecta example snippets


echo Selecta::wrap('h1.welcome', 'Hello, world');

echo Selecta::wrap('ul.list li', 'So listy');

echo Selecta::wrap('div#contact', 'Call me');

echo Selecta::build('input[type=radio][name=color][value=blue]:checked');

echo Selecta::build('form#contact div.field input[type=text][

echo Selecta::open('section.sidebar div');
echo $CMS->display_all_my_weird_sidebar_junk();
echo Selecta::close('section div');