php计算最后一次,第一次字符串出现位置

strpos($str, n) 首次,n在str第一次出现位置,

strrpos($str, n) 最后一次,n在str最后一次出现位置 strripos区分大小写