Bash run php script using multiline string
script=$(cat <<'EOF'
$data = file_get_contents('README.md');
var_dump($data);
EOF
)
php --run "${script}"
script=$(cat <<'EOF'
$data = file_get_contents('README.md');
var_dump($data);
EOF
)
php --run "${script}"
Comments
Leave a Reply