构建数组时,我不断收到以下错误:
PHP Parse error: syntax error, unexpected ';', expecting ')'
对于以下代码:
$fetchResult=$PubMedClient->run_eFetch(array(
'db'=>'pubmed',
'id'=>(count($searchResult->IdList->Id)>1 ? join(",",$searchResult->IdList->Id) : $searchResult->IdList->Id)));
我试图以多种方式打破这一点,但它不起作用。像往常一样,我确信这很简单,我只是没有看到。
有人有想法吗?
非常感谢