分类:PHP
2015
07-04
主体代码:functiontoChineseNumber($money){$money=round($money,2);$cnynums=array("零","壹","贰","叁","肆","伍","陆","柒","捌","玖");$cnyunits=array("圆","角","分");$cnygrees=array("拾","佰","仟","万","拾","佰","仟","亿");list($int,$dec)=explode(".",$money,2);$dec=array_filter(array($dec[1],$dec[0]));$ret=array_merge($dec,array(implode("",$this->cnyMap...
继续阅读 >
2015
06-30
2015
06-23
required:必须值验证属性[['字段名'],required,'requiredValue'=>'必填值','message'=>'提示信息'];#说明:CRequiredValidator的别名,确保了特性不为空.email:邮箱验证['email','email'];#说明:CEmailValidator的别名,确保了特性的值是一个有效的电邮地址.match:正则验证[['字段名'],match,'pattern'=>'正则表达式','message'=>'提示信息'];[['字段名'],match,'not'=>ture,'pattern'=>'正则表达式','messa...
继续阅读 >