
PHP
yongzhang52545
这个作者很懒,什么都没留下…
展开
-
php二分法
<?php //search函数 其中$array为数组,$k为要找的值,$low为查找范围的最小键值,$high为查找范围的最大键值 function search($array, $k, $low=0, $high=0) { if(count($array)!=0 and $high == 0)转载 2012-02-14 17:35:16 · 478 阅读 · 0 评论 -
php函数serialize()与unserialize()
serialize()和unserialize()在php手册上的解释是: serialize — Generates a storable representationof a value serialize — 产生一个可存储的值的表示 unserialize — Creates a PHP value from a storedrepresentation unserialize —转载 2012-02-14 17:46:10 · 477 阅读 · 0 评论