Back to Xml class

Method out

public $this
out
(mixed $text = '', mixed $nl = true)
Write a string to standard output.
Parameters
  • string $text The text to display.
  • bool $nl True (default) to append a new line at the end of the output string.
Returns
  • $this
Since
  • 4.0.0
-
  • \RuntimeException
Class: Xml
Project: Joomla

Method out - Source code

/**
 * Write a string to standard output.
 *
 * @param   string   $text  The text to display.
 * @param   boolean  $nl    True (default) to append a new line at the end of the output string.
 *
 * @return  $this
 *
 * @since   4.0.0
 * @throws  \RuntimeException
 * @codeCoverageIgnore
 */
public function out($text = '', $nl = true)
{
    fwrite(STDOUT, $text . ($nl ? "\n" : null));
    return $this;
}