#!/usr/bin/env php
|
|
<?php
|
|
|
|
$stdin = fopen( 'php://stdin', 'r' );
|
|
|
|
$json = '';
|
|
|
|
while ($line = fgets($stdin)) {
|
|
$json .= $line;
|
|
}
|
|
|
|
print_r(json_decode($json));
|
|
|
|
fclose($f);
|