title: Subtracting two array values in PHP
body: <p>Here are the snapshots of the two arrays: </p>
  
  <pre><code>Array ( [assigned_todo_count] =&gt; 382 )
  Array ( [delayedtasks] =&gt; 88 )
  </code></pre>
  
  <p>and I have used the <code>array_diff_asooc</code> function for subtraction of the arrays but I am not getting the result I expected.</p>
  
  <pre><code>foreach(array_diff_assoc($assigned_todo_count,$delayed_todo_count) as $item)
  {
  print_r($item);
  }
  </code></pre>
  
  <p>The final result when doing <code>print_r</code> outputs <code>382</code>. I have to  find the difference between two arrays though final output results in the first arrays result.</p>