
PHP YII
失落小羊
技术是一生的爱好
展开
-
YII-link html- Options
在link()中已经包装好了相应程序封装ajax和js: CHtml::link("完成工作", array(),array('style'=>'color:red','submit'=>array("/wos0001/complete","id"=>$data->id),'confirm'转载 2014-03-12 17:29:19 · 684 阅读 · 0 评论 -
how to use regular expressions in yii
http://stackoverflow.com/questions/20455022/how-to-use-regular-expressions-in-yiiYou can try to use match (CRegularExpressionValidator) rule to validate the attribute value with the specif转载 2014-03-20 22:59:42 · 684 阅读 · 0 评论 -
PHP匹配中文的正则表达式
http://sunzy.org/index.php/tag/utf8preg_match(“/^[x{4e00}-x{9fa5}]{1,4}/u”,$str);加入参数u,错误消失,匹配正确。一般来说,指定代码点的形式有3种:『uxxxx』、『u{xxxx}』、『x{xxxx}』(其中的xxxx为编码的值,u之后必须有4位 16进制数字)。.NET、Java、转载 2014-03-20 23:11:06 · 566 阅读 · 0 评论