Bash run php script using multiline string

script=$(cat <<'EOF'
    $data = file_get_contents('README.md');
    var_dump($data);
EOF

)
php --run "${script}"
View this page on GitHub.
Posted .

Comments

Leave a Reply