myvesta-php-func support for stdin

This commit is contained in:
myvesta 2023-04-14 15:39:33 +02:00 committed by GitHub
commit 4dd6d22f07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 126 additions and 6 deletions

View file

@ -71,7 +71,9 @@ function myvesta_fix_args() {
}
function myvesta_test_func () {
global $myvesta_stdin;
$args=func_get_args();
if ($myvesta_stdin!='') array_splice( $args, 0, 0, array($myvesta_stdin) );
myvesta_echo ("You said: ");
myvesta_echo (trim(print_r ($args, true)));
}