Skip to content

Instantly share code, notes, and snippets.

@mgng
Created December 17, 2012 01:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgng/4315137 to your computer and use it in GitHub Desktop.
Save mgng/4315137 to your computer and use it in GitHub Desktop.
フォローしてる user_id 一覧
フォローされてる user_id 一覧
ブロックしてる user_id 一覧
フォローしてる user_id 一覧
フォローされてる user_id 一覧
ブロックしてる user_id 一覧
相互フォローしてる user_id 一覧
フォロー返してくれない user_id 一覧
フォロー返しわすれてる user_id 一覧
<?php
$list = array(
'388638837',
'396543280',
'341864784',
'80872288',
'507601253',
'525994619',
);
a:6:{i:0;s:9:"388638837";i:1;s:9:"396543280";i:2;s:9:"341864784";i:3;s:8:"80872288";i:4;s:9:"507601253";i:5;s:9:"525994619";}
<?php
$list = implode(',', array(
'388638837',
'396543280',
'341864784',
'80872288',
'507601253',
'525994619',
));
s:58:"388638837,396543280,341864784,80872288,507601253,525994619";
<?php
$list = array(
'388638837',
'396543280',
'341864784',
'80872288',
'507601253',
'525994619',
);
var_dump(
strlen( serialize( $list ) ),
strlen( serialize( implode(',', $list ))),
strlen( serialize( gzdeflate( implode(',', $list ),9)))
);
// int(125)
// int(66)
// int(52)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment