title: Using two `=` signs in a single line of PHP code
body: <p>I found this piece of code that I did not write:</p>
  
  <pre><code>$serverArray['msg'] = $data_log['AuthLog']['response_text'] = ($outputArray['transOutput']['outputCode'] == 1) ? $outputArray['transOutput']['msg'][0]['desc'] : $outputArray['transOutput']['errors'][0]['errorText'];
  </code></pre>
  
  <p>As you can see in the code about, the <code>=</code> sign appears twice in the same line (ignoring <code>==</code> because that is clear to me what it means. In other words, I am trying to understand if the line of code is doing one of these two versions:</p>
  
  <ol>
  <li>$serverArray['msg'] = $data_log['AuthLog']['response_text'];</li>
  <li>$serverArray['msg'] = ($outputArray['transOutput']['outputCode'] == 1) ? $outputArray['transOutput']['msg'][0]['desc'] : $outputArray['transOutput']['errors'][0]['errorText'];</li>
  </ol>
  
  <p>I guess what the code does is not simply limited to one of the two versions above because if that were the case, it would have been written exactly as one of the two versions above and it was not. So what is the usage of two <code>=</code> signs in the same line of code? Thanks.</p>