2017 © Pedro Peláez
 

library eprint

Kernighan style eprint utility functions for php

image

zzengineer/eprint

Kernighan style eprint utility functions for php

  • Monday, September 21, 2015
  • by zzengineer
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

eprint

Kernighan style eprint utility functions for php, (*1)

Latest Stable Version Total Downloads Latest Unstable Version License

NAME

eprint -- formatted stderr printing utility functions, (*2)

SYNOPSIS

function eprint($msg), (*3)

function nprint($msg), (*4)

function wprint($msg), (*5)

DESCRIPTION

All functions will print a message to STDERR prepended with date, filename, pid and the level depending on the function used. The eprint() function will additionaly halt the execution with exit(2). If $msg is passed as a multiline string, it will be indented to emphasize it's multiline nature., (*6)

EXAMPLES

the following code, (*7)


nprint('this is a notice'); nprint('this is a dump of the $_ENV '. print_r($_ENV, true)); wprint('this should be checked sometime'); eprint('and this will stop the execution');

will output, (*8)


2015-09-21 19:35:55 printme [81662] notice: this is a notice 2015-09-21 19:35:55 printme [81662] notice: this is a dump of the $_ENV Array ( [PAGER] => more [EDITOR] => vi [...] [SHELL] => /bin/sh [BLOCKSIZE] => K ) 2015-09-21 19:35:55 printme [81662] warning: this should be checked sometime 2015-09-21 19:35:55 printme [81662] error: and this will stop the execution

The Versions

21/09 2015

dev-master

9999999-dev

Kernighan style eprint utility functions for php

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by John Doe

php eprint

21/09 2015

0.9

0.9.0.0

Kernighan style eprint utility functions for php

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by John Doe

php eprint