You need to call login_info($email, $password)
and assign to a variable separately then get the index from that new variable.
The reason for this is that your version of PHP (which I guess is actually 5.3, which is old and dead so I’d recommend a better host) doesn’t support function array dereferencing (the bit that allows you to access an array key against a function call, i.e. ()[]
) which was added in 5.4.0.
solved php: syntax error when changing from v7 to v5