$str 'a/b/c/d/e/f';

echo preg_replace('/.*\//','',$str);
 
 
echo preg_replace('/.*,/','',$str);最后一个后面
 
echo preg_replace('/.*,/','',$str);第一个前面

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-23
  • 2023-04-03
  • 2022-12-23
猜你喜欢
  • 2021-12-25
  • 2021-06-20
  • 2022-12-23
  • 2022-03-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案