php经典实例 一、字符串 1. 查找字符串首次出现的位置 strpos() 2. 字符串的截取 substr() 3. 替换字符串的子串 substr_replace() str_replace();