What is =& in PHP?

前端 未结 5 1461
甜味超标
甜味超标 2021-01-17 11:17

Look at this example. There is a line:

  $client =& new xmlrpc_client(\'/xml-rpc\', \'api.quicktate.com\', 80);
  $client->return_type = \'xmlrpcvals         


        
5条回答
  •  终归单人心
    2021-01-17 11:44

    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

提交回复
热议问题