Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/261.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google自定义搜索如何运行命令php_Php_Google Custom Search - Fatal编程技术网

Google自定义搜索如何运行命令php

Google自定义搜索如何运行命令php,php,google-custom-search,Php,Google Custom Search,我有一个机器人,我用这个命令运行它: robot:test:google 在这个机器人中,我有一个执行功能: protected function execute(InputInterface $input, OutputInterface $output) { echo "test"; } 在这个函数中,我尝试运行命令google custom search api,我需要调用: <gcse:search></gcse:search> 但我不知道如何在

我有一个机器人,我用这个命令运行它:

robot:test:google
在这个机器人中,我有一个执行功能:

protected function execute(InputInterface $input, OutputInterface $output)
{
    echo "test";
}
在这个函数中,我尝试运行命令google custom search api,我需要调用:

<gcse:search></gcse:search>

但我不知道如何在函数execute中运行这个命令