Collective\Html\HtmlBuilder::nbsp PHP Method

nbsp() public method

Generates non-breaking space entities based on number supplied.
public nbsp ( integer $num = 1 ) : string
$num integer
return string
    public function nbsp($num = 1)
    {
        return str_repeat(' ', $num);
    }

Usage Example

Example #1
0
 /**
  * Generates non-breaking space entities based on number supplied.
  *
  * @param int $num
  *
  * @return string
  * @static
  */
 public static function nbsp($num = 1)
 {
     return \Collective\Html\HtmlBuilder::nbsp($num);
 }