daily pastebin goal
82%
SHARE
TWEET

Untitled

a guest Jul 24th, 2017 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Dorian-Grim: generate a string containing many placeholders
  2.  
  3. $testArray = explode(",",$var); // comma separator. $var is used WHERE field in ($var)
  4.  
  5. $bindings = implode(", ", array_map($testArray, function($key) {return ':'.trim($key);}));
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