php中字符串操作函数

0 views
Skip to first unread message

love0...@gmail.com

unread,
Mar 21, 2006, 11:56:44 PM3/21/06
to 52info
str_replace("1", "1111",
"1234");替换字符串将字符串“1234”中的字符“1”换成“1111”。结果1111234
strpos("123","1")
返回字符串“1”在字符串“123”中的位置这。结果1
substr("123456",2,3)从字符串"123456"中第2位开始一共截取3位字符串
Reply all
Reply to author
Forward
0 new messages