PHP Error: “Call to undefined function AddUser() ”. What am I doing wrong? [closed]-Collection of common programming errors

You don’t use the . in PHP. Use -> instead, eg:

$x->AddUser('FakeId','FakeUser');
$x->Refresh('FakeUser');

The . is PHP’s concatenation operator, so it thinks you want

$x . AddUser('FakeId', 'FakeUser'); // $x concatenated with AddUser(...)

And of course Adduser() is undefined.

Originally posted 2013-11-09 22:49:01.