- posix_isatty: documentation ( source)
- assert: documentation ( source)
- var_dump: documentation ( source)
- fopen: documentation ( source)
<?php
function test_posix_isatty() {
assert('function_exists("posix_isatty")');
return posix_isatty(fopen('php://memory', 'w'));
}
var_dump(
PHP_VERSION,
test_posix_isatty()
);