/** * Outputs a single or multiple error messages to stderr. If no parameters * are passed outputs just a newline. * * @param mixed $message A string or a an array of strings to output * @param integer $newlines Number of newlines to append * @access public */ function err($message = null, $newlines = 1) { if (is_array($message)) { $message = implode($this->nl(), $message); } $this->Dispatch->stderr($message . $this->nl($newlines)); }
/** * Outputs a single or multiple error messages to stderr. * * @param mixed $message A string or a an array of strings to output * @param mixed $after Appended to message, if true a newline is used * @access public */ function err($message, $after = true) { if (is_array($message)) { $message = implode($this->nl(), $message); } $this->Dispatch->stderr($message . $this->nl($after)); }
/** * Outputs to the stderr filehandle. * * @param string $string Error text to output. * @access public */ function err($string) { if (is_array($string)) { $str = ''; foreach ($string as $message) { $str .= $message . "\n"; } $string = $str; } return $this->Dispatch->stderr($string . "\n"); }