Skip to content

Instantly share code, notes, and snippets.

@pjhoberman
Created March 30, 2011 20:50
Show Gist options
  • Save pjhoberman/895269 to your computer and use it in GitHub Desktop.
Save pjhoberman/895269 to your computer and use it in GitHub Desktop.
#!/usr/bin/php
<?php
$input = "";
$fp = fopen("php://stdin", "r");
while ( $line = fgets($fp, 1024) )
$input .= $line;
fclose($fp);
echo '${_("';
echo $input;
if( strstr( $input, '<' ))
echo '") | n }';
else
echo '")}';
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment