且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从命令行调用php函数

更新时间:2023-02-20 08:46:26

By using the -r parameter you can run a script in-line.

php -r "require 'address.php'; exportAddress(12345);"

There are no other options. A function in PHP can only be called by a PHP script.