2012年8月31日
摘要: 1,print_r(str_split('hello')); print_r(str_split('hello',3)); array ( [0] => hel [1] => )/*指定什么位置开始分割*/array([0] => h[1] => e[2] => l[3] => l[4] => o)/*指定字符开始分割,有多少次分多少次*/2,print_r(explode(',','h,e,l,l,o'));array([0] => h[1] => e[2] => l[ 阅读全文
posted @ 2012-08-31 15:20 网宗 阅读(158) 评论(0) 推荐(0) 编辑
摘要: mysql 删除指定字段的值的最后字符update 表名 set `name` = left(`name`,length(`name`) - 1)注意了sqlite对left不支持 阅读全文
posted @ 2012-08-31 11:22 网宗 阅读(1293) 评论(0) 推荐(0) 编辑

糗乐网-糗事|乐事|天下事