method getLogLine documentation in bbn\Db\HasError

Returns a string with the given text in the middle of a "line" of logs.

function(string $text = '') { if ($text) { $text = ' '.$text.' '; } $tot = \strlen(self::$LINE) - \strlen($text); $char = \substr(self::$LINE, 0, 1); return \str_repeat($char, floor($tot / 2)).$text.\str_repeat($char, ceil($tot / 2)); }

Returns a string with the given text in the middle of a "line" of logs. 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.