I have a file called address.php with a few functions in it. I want to call a specific function in that file from the command line. How?
The name of the function is
Use
php -r 'include "/var/www/test/address.php";exportAddress(1);'
where "/var/www/test/arr.php" is the file name, including path, and exportAddress() is a function inside that file.
"/var/www/test/arr.php"
exportAddress()