Help regarding "Parse error: syntax error"

Hello,

I’m trying to use some PHP example code contain function that look like this:

[php]function query(path, $key = ‘’, $secret = ‘’, array $req = array()) {[/php]

IT fail on

Parse error: syntax error, unexpected ',', expecting '&' or T_VARIABLE in test.php on line ..(The function header))

The example is from:
https://bitcurex.com/reading-room/API

I’m using PHP 5.3.10 on ubuntu.
Do I need any other PHP version or any PHP flags to try it?

Regards

I think path is supposed to $path.

Sponsor our Newsletter | Privacy Policy | Terms of Service