zsh/.zsh/functions/enphp

2 lines
97 B
Bash

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