I am trying to run a PHP function inside Bash... but it is not working.
#! /bin/bash /usr/bin/php << \'EOF\' EOF
This is how you can inline PHP commands within the shell i.e. *sh:
#!/bin/bash export VAR="variable_value" php_out=$(php << 'EOF' echo getenv("VAR"); //input ?> EOF) >&2 echo "php_out: $php_out"; #output