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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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 thereturn_typemember of$client.* see comments for clarification