title: Values from JSON encode array are not passing to the variables
body: <p>I have issue that i am not able to retrieve values from the json array. Below is the code which i have written.</p>
  
  <pre><code>$receiver_data=$_POST['array'];
  
  $new_array=json_decode($receiver_data,true);
  
  foreach($new_array as $row)
  {
      $m_id='".$row["m_id"]."'; 
      $u_id='".$row["u_id"]."';
      break;
  }
  
  $query = "DELETE FROM `squads` WHERE m_id=? AND u_id=? ";
  $stmt = $con-&gt;prepare($query);
  $stmt-&gt;bind_param("ss", $m_id,$u_id);
  $stmt-&gt;execute();
  
  $stmt-&gt;close();
  </code></pre>