- 博客(3)
- 收藏
- 关注
原创 php 字符串 format 类
symbol=$symbol; } public function fill(){ $args=func_get_args(); return $this->fillHash($args,'@'); } private function fillCallBack($symbol,$key,$fmtbody,$hs){ $value=$hs[$key]; $fmtbody=str_re
2010-06-21 15:20:00
544
原创 一个php的包装类
class Packer{ var $packin; public function __construct(&$packin){ $this->packin=$packin; } public function __tostring(){ return "[Packer]"; } protected function __get($k){ $funcName='get'.ucfirst(
2010-06-04 09:34:00
596
原创 String.prototype
String.prototype.fillHash=function(oSource,sSymbol){ if(typeof sSymbol=="undefined"){sSymbol="$"} if(sSymbol.trim()!=""){sSymbol="//"+sSymbol} var r=new RegExp("//{"+sSymbol+"([^//://s/
2009-09-23 15:17:00
785
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人