zsh/home/.zsh/functions/unphp

3 lines
99 B
Text
Raw Normal View History

#! zsh
cat $argv | php -r 'echo json_encode( unserialize( file_get_contents( "php://stdin" ) ) );'