Use a regular approach to remove the suffix

xiaoxiao2021-03-06  106

Function GetPostfix ($ STR)

{

Return preg_replace ('/.*/. (.* / .].* )*/ Iu', '// 1', $ STR);

}

$ Str = "abc.c.dd, .abc.h.ccc.fsabc.ff";

Echo getPostfix ($ STR);

转载请注明原文地址:https://www.9cbs.com/read-100181.html

New Post(0)