I am trying to run a PHP function inside Bash... but it is not working.
#! /bin/bash /usr/bin/php << \'EOF\' EOF
Use '-R' of php command line. It has a build-in variable that reads inputs.
VAR='/$#' php_cwd=$(echo $VAR | php -R 'echo preg_quote($argn);') echo $php_cwd