I keep getting the following error when building an array:
PHP Parse error: syntax error, unexpected ';', expecting ')'
for the following code:
$fetchResult=$PubMedClient->run_eFetch(array(
'db'=>'pubmed',
'id'=>(count($searchResult->IdList->Id)>1 ? join(",",$searchResult->IdList->Id) : $searchResult->IdList->Id)));
I've tried to break this up in many ways, but it does not work. As usual, I'm sure it is something simple that I'm just not seeing.
Anyone have an idea?
Many thanks
)
before;
at the end of your code?