#!/usr/bin/env php $arg) { $args[$key] = addcslashes($arg, "\\\n"); } $args = implode("\n", $args); echo $args;