output.php 1.0 KB

12345678910111213141516171819
  1. <?php
  2. require_once 'common.php';
  3. \cli\out(" \\cli\\out sends output to STDOUT\n");
  4. \cli\out(" It does not automatically append a new line\n");
  5. \cli\out(" It does accept any number of %s which are then %s to %s for formatting\n", 'arguments', 'passed', 'sprintf');
  6. \cli\out(" Alternatively, {:a} can use an {:b} as the second argument.\n\n", array('a' => 'you', 'b' => 'array'));
  7. \cli\err(' \cli\err sends output to STDERR');
  8. \cli\err(' It does automatically append a new line');
  9. \cli\err(' It does accept any number of %s which are then %s to %s for formatting', 'arguments', 'passed', 'sprintf');
  10. \cli\err(" Alternatively, {:a} can use an {:b} as the second argument.\n", array('a' => 'you', 'b' => 'array'));
  11. \cli\line(' \cli\line forwards to \cli\out for output');
  12. \cli\line(' It does automatically append a new line');
  13. \cli\line(' It does accept any number of %s which are then %s to %s for formatting', 'arguments', 'passed', 'sprintf');
  14. \cli\line(" Alternatively, {:a} can use an {:b} as the second argument.\n", array('a' => 'you', 'b' => 'array'));