title: Can I edit mysqli_result object in php?
body: <p>I got mysqli_result object from successfully query </p>
  
  <p>I wanna modify this mysqli_result object using if statement..</p>
  
  <pre><code> $party_set = find_all_parties(); //mysqli_result object
  
   while($party = mysqli_fetch_assoc($party_set)){
       $locArr =split(",",$party["loc"]);    
       $lat = $locArr[0];
       $lng = $locArr[1]; 
  
       if(distance($currentLat,$currentLng,$lat,$lng) &gt; $seletedDistance ){             
           //I want remove the row if this condition is true             
       }
   }
  </code></pre>
  
  <p>How can I modify <code>$party_set</code>?? </p>