Advertisement
Guest User

Untitled

a guest
Jun 18th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. $type = DB::select(DB::raw('SHOW COLUMNS FROM players WHERE Field = "mediclevel"'))[0]->Type;
  2. preg_match('/^enum\((.*)\)$/', $type, $matches);
  3. $valuesMed = array();
  4. foreach(explode(',', $matches[1]) as $value){
  5. $valuesMed[] = trim($value, "'");
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement