Look at this example. There is a line:
$client =& new xmlrpc_client('/xml-rpc', 'api.quicktate.com', 80);
$client->return_type = 'xmlrpcvals';
What is the =& and what does the -> in $client->return_type mean?
The = and the & should* have a space between them - they're two different operators. The & means get a reference to this.
The -> is for object member access - this means assign 'xmlrpcvals' to the return_type member of $client.
* see comments for clarification
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With