title: How to use the conditional operator on $_POST array in PHP?
body: <pre><code>$myitem = $_POST['item1'] ? myitem : NULL ;
  </code></pre>
  
  <p>is this possible? I got an error <code>Notice: Undefined index</code></p>
  
  <p>I use conditioning number of object items by ajax. for example sometime $_POST['item1'] is not passed.</p>