PHP字符串练习题
摘要:
题目要求:将一个字符串1234567890转换成1,234,567,890 解法一:将这两个字符串倒序来看即将0987654321转换成098,765,432,1,那么可以将0987654321分割成每个单元是三个长度字符串的数组array(098,765,432,1),然后将数组和逗号结... 阅读全文
posted @ 2015-08-25 22:13 wshtl 阅读(677) 评论(0) 推荐(0)
posted @ 2015-08-25 22:13 wshtl 阅读(677) 评论(0) 推荐(0)
posted @ 2015-08-25 22:12 wshtl 阅读(232) 评论(0) 推荐(0)
posted @ 2015-08-25 11:22 wshtl 阅读(537) 评论(0) 推荐(0)