艾夏又更新了 2016-07-16 10:58 采纳率: 33.3%
浏览 1742

PHP函数调用在另一个文件里

function __shop($fruits,$greens,$cosmetics)
{
$shop1 = 'shop1.txt';

            if (file_exists($shop1)) {
                echo "The file {$shop1} exists";
            } else {
                echo "The file {$shop1} does not exist";
            }

这个怎么调用??谢大神

    }
  • 写回答

1条回答 默认 最新

  • GSX_星星侠 2016-07-16 11:32
    关注

    是PHP文件,直接#include_once "函数文件名.php"

    评论

报告相同问题?