method cssToString documentation in bbn\Html\Element

Generates style string for a HTML tag

function($css) { return ' style="'.bbn\Str::escapeDquotes($css).'"'; } else if ( \is_array($css) && \count($css) > 0 ){ $st = ''; foreach ( $css as $prop => $val ){ $st .= $prop.':'.$val.';'; } return ' style="'.bbn\Str::escapeDquotes($st).'"'; } }

Generates style string for a HTML tag BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.