I'm attempting to use a PDO Database class written by someone else for php.
The entire class can be found at the following link: HERE
One of the methods in the class produces a PHP parse error.
Here is the method causing the error
public function bind($para, $value)
{
$this->parameters[sizeof($this->parameters)] = [":" . $para , $value];
}
The error that I'm receiving is:
PHP Parse error: syntax error, unexpected '['
By removing parts of the one statement in the method I've determined that the second "[' the one after the equals sign is the one that's causing the problem.
My google fu hasn't been able to find any statements with regard to PDO parameters that resemble this statement for me to figure out what is wrong (or even what is right) with the statement.
I'm new to PDO and I don't understand the statement enough to see how to fix it. Any help would be greatly appreciated.