I am trying to run a PHP function inside Bash... but it is not working.
#! /bin/bash /usr/bin/php << \'EOF\' EOF
This is what worked for me:
VAR='/$#' php_cwd=`/usr/bin/php << EOF EOF` echo "$php_cwd"