daily pastebin goal
46%
SHARE
TWEET

Untitled

a guest Feb 19th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $array = array(...over 29k IDs...);
  3. $update = array();
  4. foreach ($array as $line) {
  5.    $update[] = array('id' => $line, 'spintax' => $this->SpinTax($string));
  6.    ### $this->SpinTax parses the spintax from a string I have. It has to be generated for each row.
  7. }
  8. $this->db->update_batch('table', $update, 'id');
  9. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top