krot

mssql_escape

Mar 27th, 2018
91
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function mssql_escape($data) {
  2.     if(is_numeric($data))
  3.         return $data;
  4.     $unpacked = unpack('H*hex', $data);
  5.     return '0x' . $unpacked['hex'];
  6. }
RAW Paste Data