PHP code example of izica / php-html-classnames
1. Go to this page and download the library: Download izica/php-html-classnames 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/ */
izica / php-html-classnames example snippets
<?
$sClassname = PhpHtmlClassnames::get([
$arParams['CLASS'], //classname from variable
'form-input', //classname from string
'form-input--submit' => $arParams['SUBMIT'] //classname with condition 'name' => true or false
]);
classnames();
cn();