title: PHP combine arrays with logical operator
body: <p>Is there a way to combine boolean arrays:</p>
  
  <pre><code>$array1: ['prop1'=&gt;T, 'prop2'=&gt;F, 'prop3'=&gt;T, 'prop4'=&gt;F, 'prop5'=&gt;T]
  $array2: ['prop1'=&gt;T, 'prop2'=&gt;F, 'prop3'=&gt;F, 'prop4'=&gt;T]
  </code></pre>
  
  <p>Into</p>
  
  <pre><code>$array3: ['prop1'=&gt;T, 'prop2'=&gt;F, 'prop3'=&gt;T, 'prop4'=&gt;T, 'prop5'=&gt;T]
  </code></pre>
  
  <p>Using the <em>OR</em> comparison?</p>
  
  <p>I thought using <code>$array3 = $array1 | $array2</code> would work but it returns a single value.</p>
  
  <p>I feel like this could be a duplicate but I failed to find the same question on SO.</p>