VellBibi
一个程序猿的世界观

导航

 

2013年7月22日

摘要: 还有个小动画哎。。。不过测试ie播放不完全,还是用chrome吧~~~ 阅读全文
posted @ 2013-07-22 16:10 VellBibi 阅读(136) 评论(0) 推荐(0) 编辑
 
摘要: 今天一开电脑发现有人在我的主页给我乱留言,所以加了一个邮箱验证。 网上发现一个很巧妙的算法,分享一下: function checkmail($email){ $exp = "^[a-z'0-9]+([._-][a-z'0-9]+)*@([a-z0-9]+([._-][a-z0-9]+))+$"; if(eregi($exp,$email)){ //先用正则表达式验证emai... 阅读全文
posted @ 2013-07-22 12:42 VellBibi 阅读(369) 评论(0) 推荐(0) 编辑
 
摘要: /* * 确定字符串长度 * int strlen(string str) * 比较两个字符串 * 1、strcmp函数对两个字符串进行二进制安全的比较,并区分大小写 * int strcmp(string str1,string str2) * 2、以不区分大小写的方式比较两个字符串 * int strcasecmp(string str1,string str2) * 3、求两个字符串相同部分... 阅读全文
posted @ 2013-07-22 01:50 VellBibi 阅读(148) 评论(0) 推荐(0) 编辑
 
 
By VellBibi