public function formatHeading($text, $line_ending = ":") {
    $green = "\033[1;32;40m\033[1m%s{$line_ending}\033[0m";
    $heading = sprintf($green, ucwords($text));
    return $heading;
  }
public function formatHeading($text, $line_ending = ":") {
    $green = "\033[1;32;40m\033[1m%s{$line_ending}\033[0m";
    $heading = sprintf($green, ucwords($text));
    return $heading;
  }
public function formatHeading ( $ text , $ line_ending = ":" ) { $ green = "\033[1;32;40m\033[1m%s{$line_ending}\033[0m" ; $ heading = sprintf ( $ green , ucwords ( $ text ) ) ; return $ heading ; }
Format a nice, readable heading for the user.

@param string $text
The raw heading text.
@param string $line_ending
A string to end the heading with.

@return string
The formatted heading text.
Format a nice readable heading for the user .