title: What The Result of Array Variable Plus One
body: <p>I'm looking @ some PHP code, &amp; I found this line, which I couldn't figure out its meaning</p>
  
  <pre><code>            $contents[$item] = (isset($contents[$item])) ? $contents[$item] + 1 : 1;
  </code></pre>
  
  <p>so if the condition is evaluated to be true, then what exactly happen, does this increments the array index or, does it add one to the array value??</p>
  
  <p>any explanation or even other resources would be highly appreciated </p>