Skip to content

Instantly share code, notes, and snippets.

@jbenner-radham
Last active August 29, 2015 13:56
Show Gist options
  • Save jbenner-radham/8977722 to your computer and use it in GitHub Desktop.
Save jbenner-radham/8977722 to your computer and use it in GitHub Desktop.
<?php
class StdOut
{
public static function write()
{
$argv = func_get_args();
$dest = '';
foreach ($argv as $arg) {
$dest .= (
mb_detect_encoding($arg) === 'UTF-8' ? iconv('UTF-8', 'ASCII//TRANSLIT', $arg)
: $arg
) . PHP_EOL;
}
echo $dest;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment