zsh/config/zsh/functions/unphp

3 lines
99 B
Bash

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