SHARE
TWEET

Untitled

a guest Jun 18th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $i = serialize('20110510134021'); //i:20110510134021;
  2.      
  3. $i = unserialize('i:20110510134021;');
  4.      
  5. Notice: unserialize(): Error at offset 0 of 16 bytes
  6.      
  7. $i = 20110510134021;
  8. echo $i;
  9.      
  10. $i = unserialize('d:20110510134021;');
  11.      
  12. $int = 20110510134021;
  13. var_dump(serialize($int));
  14.      
  15. $serialized = 'i:20110510134021';
  16.  
  17. if (preg_match('/i:([d]+)/', $serialized, $match))
  18. {
  19.     $unserialized = $match[1];
  20. }
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top