« require と include | メイン | ネット接続が切れてもコマンド実行 »

2007年12月04日

serialize の作り?

* a - array
* b - boolean
* d - double
* i - integer
* o - common object
* r - reference
* s - string
* C - custom object
* O - class
* N - null
* R - pointer reference
* U - unicode string

らすぃ。

print_r($hoge);が以下のような場合


[0072] => http://www.example.com/case/ss_fa02.html
[0090] => http://www.example.com/
[0093] => http://www.example.com/integration/index.html
[0102] => http://www.example.com/corp/index.html
[0103] => http://www.example.com/ir/holder/index.html
[0104] => http://www.example.com/ir/highlight/index.html
[0105] => http://www.example.com/ir/highlight/zaimu.html
[0107] => http://www.example.com/ir/highlight/zaimu_con.html
[0108] => http://www.example.com/ir/policy.html
[0109] => http://www.example.com/ir/annunciation.html
[0110] => http://www.example.com/ir/project/index.html
[0111] => http://www.example.com/glossary/index.html
[0112] => http://www.example.com/glossary/000188.html
[0113] => http://www.example.com/glossary/000213.html
[0114] => http://www.example.com/glossary/000207.html
[0115] => http://www.example.com/glossary/000209.html
[0116] => http://www.example.com/glossary/000177.html
[0117] => http://www.example.com/glossary/000192.html
[0118] => http://www.example.com/glossary/000169.html
[0119] => http://www.example.com/glossary/000187.html


シリアライズ化されると次のように

a:892:{ s:4:"0072";s:41:"http://www.example.com/case/ss_fa02.html";
s:4:"0090";s:24:"http://www.example.com/";
s:4:"0093";s:46:"http://www.example.com/integration/index.html";
s:4:"0102";s:39:"http://www.example.com/corp/index.html";
s:4:"0103";s:44:"http://www.example.com/ir/holder/index.html";
s:4:"0104";s:47:"http://www.example.com/ir/highlight/index.html";
s:4:"0105";s:47:"http://www.example.com/ir/highlight/zaimu.html";
s:4:"0107";s:51:"http://www.example.com/ir/highlight/zaimu_con.html";
・・・・

投稿者 muuming : 2007年12月04日 09:35

コメント

コメントしてください




保存しますか?