There are lines:
/download/doc/bd2/bd217ce34263e9bf8679562067758196.xls|/download/doc/17f/17fc9e435a3d3a1d1e6f12c13fe1262f.xls|/download/doc/42b/42be09853a529555d6f2316f1f29b593.xls It is necessary that it turned out:
bd217ce34263e9bf8679562067758196.xls|17fc9e435a3d3a1d1e6f12c13fe1262f.xls|42be09853a529555d6f2316f1f29b593.xls The str_replace function str_replace not work, because after 3 slashes, the parameters change all the time.
Tried the strrchr function
$param = "/download/doc/bd2/bd217ce34263e9bf8679562067758196.xls|/download/doc/17f/17fc9e435a3d3a1d1e6f12c13fe1262f.xls|/download/doc/42b/42be09853a529555d6f2316f1f29b593.xls "; $string = substr(strrchr($param, "/"), 1); echo $string; But she only returns 42be09853a529555d6f2316f1f29b593.xls